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

Posted by J.O. Aho on 10/10/76 11:32

Stefan Mueller wrote:
> 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?

You don't, use cookies or sessions

www.php.net/manual/en/function.setcookie.php
www.php.net/manual/en/ref.session.php


//Aho

 

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

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