Posted by Stefan Mueller on 10/10/42 11:32
After the user presses the submit button I calculate with a PHP script some
random numbers, read the submitted data and generate the new page.
Everything works fine. However, if the user reloads this page my PHP scripts
calculates again some different random numbers, reads the same data as
before and generates the page again. I really don't like that because then
the user gets new random numbers.
I thought I could save the first random numbers to my second frame (hidden
text box) and if the user reloads the page my PHP script could use these
saved random numbers.
But how can I read these numbers from my second frame with my PHP script?
Is that possible or how can I determine if my page has already been loaded
once?
Stefan
[Back to original message]
|