Help with this code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    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%.

    Comment


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

      also JavaScript:
      Code:
      [INDENT]<html>[/INDENT][INDENT=2]<head>
      [/INDENT][INDENT=3]<script type="text/javascript">[/INDENT][INDENT=4]function redirectUser()
      [/INDENT][INDENT=4]{   window.location = "[COLOR=#FF0000][B]your_link_here[/B][/COLOR]"; }
      [/INDENT][INDENT=3]</script>
      [/INDENT][INDENT=2]</head>[/INDENT][INDENT=2]<body onload="setTimeout('redirectUser()', [COLOR=#FF0000][B]5000[/B][/COLOR])">
      [/INDENT][INDENT=3][COLOR=#FF0000][B]Some note for user here...[/B][/COLOR][/INDENT][INDENT=2]</body>[/INDENT][INDENT]</html>
      [/INDENT]
      keep in mind that number 5000 means approx 5 seconds
      Last edited by metulj; 04.11.11, 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ノ刀ノイリ!

      Comment


        #4
        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

        Comment


          #5
          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"); 

          Comment

          Working...
          X