Small problem with sessions
Posted: Thu Apr 10, 2003 1:28 pm
OK i have page1.php with form fields filled in with data from mysql.
<input type="text" name="location" size="30" value="<? echo($row[18]);?>"> etc.etc..........
I use the following to validate user:
<? session_start();
if ( session_is_registered ("myuser") )
{
when the form goes to the other page ( page2.php ) the data is displayed on page2 fine but.................
If they decide to go back and change something on page1.php when sent to page2 again the changes have not been applied because of the session saves the values from page1 on the first submit......
How can i change the session so it will keep changing values if they hit the back button ? Or will a refresh work on page2 ? if so whats the code ??
Thanks
<input type="text" name="location" size="30" value="<? echo($row[18]);?>"> etc.etc..........
I use the following to validate user:
<? session_start();
if ( session_is_registered ("myuser") )
{
when the form goes to the other page ( page2.php ) the data is displayed on page2 fine but.................
If they decide to go back and change something on page1.php when sent to page2 again the changes have not been applied because of the session saves the values from page1 on the first submit......
How can i change the session so it will keep changing values if they hit the back button ? Or will a refresh work on page2 ? if so whats the code ??
Thanks