HTML Help

Discussion in 'Computing, Science, and Technology' started by psp2468, Nov 2, 2009.

  1. psp2468

    psp2468 Member

    Joined:
    Jan 20, 2008
    Messages:
    541
    Likes Received:
    1
    Device:
    iPhone 3GS (White)
    I was wondering if one of you guys could help me with some HTML code for a new feature on my website.

    If you are interestd in helping (and getting credit for it on the website) please PM and I'll tell you what I need.
    ------------------double post merged------------------
    Alright I figured out what I wanted to do but need one thing.

    Is it possible to make a webpage redirect to another site after two refreashes?
  2. willj12

    willj12 New Member

    Joined:
    Feb 19, 2009
    Messages:
    62
    Likes Received:
    0
    Device:
    2G iPod touch
    What are you trying to do, I don't understand?
  3. Tommm

    Tommm Member

    Joined:
    Jul 14, 2009
    Messages:
    752
    Likes Received:
    0
    Device:
    4G iPod touch
    Code:
    <?php
    session_start();
    
    if ( isset ( $_SESSION['refresh'] ) ) {
       if ( $_SESSION['refresh'] == 2 ) {
           header("location: http://google.com");
       } else {
          $_SESSION['refresh']++;
       }
    } else {
       $_SESSION['refresh'] = 0;
    }
    ?>
    
    That should work. Also, it requires a server with PHP. I'm not sure how to do it in Javascript.

Share This Page