| 
	
 | 
 Posted by J.O. Aho on 06/18/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] 
 |