I want to increase variable one every refresh of the page

Discussion in 'PHP' started by lionking, May 27, 2009.

  1. #1
    Hello everybody

    I want to increase variable one every refresh of the page
    Without the use of the database or session variable only

    Is it possible that
     
    lionking, May 27, 2009 IP
  2. nguoituyet

    nguoituyet Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, you can use input hidden to keep track the variable value. Each time user refreshs the page, you can get the value from that hidden input, +1, and send back to user. You can also keep the variable value in URL. For example:
    ....?var=123
    After refresh
    ....?var=124

    Hope this help!
     
    nguoituyet, May 27, 2009 IP