[PHP] The data get lost when click back button

2007-06-16 Thread Tom
My problem: I have a form for that the users register indicating a user's name and password and other data. Previously to add the user in the data base I verify that user's name doesn't already exist. In that case I show an error message and I ask him to attempt it again. But, when the user

Re: [PHP] The data get lost when click back button

2007-06-16 Thread Paul Scott
On Sat, 2007-06-16 at 12:47 -0300, Tom wrote: How can I make in simple way that, the data in the fields don't get lost when the user returning to the form? You can add the field data to a session: $field1 = $_GET['field1']; $_SESSION['field1'] = $field1; // then to get them back again

Re: [PHP] The data get lost when click back button

2007-06-16 Thread tedd
At 12:47 PM -0300 6/16/07, Tom wrote: My problem: I have a form for that the users register indicating a user's name and password and other data. Previously to add the user in the data base I verify that user's name doesn't already exist. In that case I show an error message and I ask him to