Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2010
    Location
    ahmedabad
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Redirect Page Script in PHP

    <form name="Instant Ranking Seo">
    <center>
    <font face="Arial"><b>You will be redirected to the script in<br><br>
    <form>
    <input type="text" size="3" name="redirect2">
    </form>
    seconds</b></font>
    </center>

    <script>
    <!--

    /*
    Count down then redirect script
    By JavaScript Kit (yourwebsitename)
    Over 400+ free scripts here!
    */

    //change below target URL to your own
    var targetURL="yourwebsitename"
    //change the second to start counting down from
    var countdownfrom=10


    var currentsecond=document.redirect.redirect2.value=countdownfrom+1
    function countredirect(){
    if (currentsecond!=1){
    currentsecond-=1
    document.redirect.redirect2.value=currentsecond
    }
    else{
    window.location=targetURL
    return
    }
    setTimeout("countredirect()",1000)
    }

    countredirect()
    //-->
    </script>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    So what is your question? Also that is javascript not php.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Tags for this Thread

    Posting Permissions

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