Variable

Out of context: Reply #8

  • Started
  • Last post
  • 20 Responses
  • dc_again0

    i'm not 100% sure what you require, but using a flat html/javascript combination is stateless. in other words, there would be no memory of the previous variable the next time you request the page, so you couldn't check if it had been requested before.

    to use javascript, you would have to write a cookie. then create random number, and write that within your cookie. next time the page is requested, check to see if your random number is in the cookie. if it isn't, you're ok so create another random number and overwrite your cookie. simple.

    besides javascript, as said before, a server side language would be needed - perl, php, cold fusion, etc.

    hope this helps.

View thread