Results 1 to 5 of 5

Thread: Help with this code

  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    3

    Default Help with this code

    Coderz i wanted redirect user to the previ0us page auth0matically, but am l0zt. My c0de


    $curl=http://javascript:history.back();";
    forward2($curl,"3");

  2. #2
    Member mFreak's Avatar
    Join Date
    Jul 2011
    Location
    Republic of Srpska
    Posts
    66
    Thanks
    19
    Thanked 16 Times in 9 Posts
    Rep Power
    2

    Default

    Just use
    PHP Code:
    header("Location:$_SERVER['HTTP_REFERER']"); 
    PHP Code:
    $("#mfreak").find(".head brain").clone(); 
    Progress:
    Code:
    [|||___________________________] : 5%
    Output:
    Code:
    Memory limit reached, unable to complete operation.
    Support answer:
    Code:
    Try using a super uber strong mega computer to reach at least 10%.

  3. #3
    Super Moderator metulj's Avatar
    Join Date
    Jan 2007
    Location
    your root... now think fast... =]
    Posts
    1,711
    Thanks
    558
    Thanked 212 Times in 130 Posts
    Rep Power
    0

    Default

    also you could use Meta Tag:
    Code:
    <meta http-equiv="refresh" content="x; url=http://target_site.com/">
    where x = time in seconds => after how many seconds user will be redirected

    also JavaScript:
    Code:
    <html>
    <head>
    <script type="text/javascript">
    function redirectUser()
    { window.location = "your_link_here"; }
    </script>
    </head>
    <body onload="setTimeout('redirectUser()', 5000)">
    Some note for user here...
    </body>
    </html>
    keep in mind that number 5000 means approx 5 seconds
    Last edited by metulj; 04-11-11 at 15:39.
    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

  4. #4
    Senior Member
    Join Date
    Mar 2010
    Location
    Ghana
    Posts
    128
    Thanks
    0
    Thanked 27 Times in 17 Posts
    Rep Power
    4

    Default

    you can also use the javascript <meta http-equiv='refresh' content='5; url='javascript:history.back();'>
    where the 5 means user should be redirected in 5sec and javascript:history.back() means user be redirected back
    [Only registered and activated users can see links. Click Here To Register...]
    [Only registered and activated users can see links. Click Here To Register...]

  5. #5
    Member
    Join Date
    Nov 2010
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    3

    Default

    Tanx all for ynur c0ntributi0n... I finally w0rk it out thiz way...

    PHP Code:
     function forward($uri,$time="2"){
    if(
    $uri){
    print 
    "<meta http-equiv=\"refresh\" CONTENT=\"$time; URL=".$uri."\">";
    }

    $curl=$_SERVER['HTTP_REFERER'];

    forward($curl,"3"); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19