You are here: How to figure out if a page has already been loaded « All PHP « IT news, forums, messages
How to figure out if a page has already been loaded

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация