Re: The data get lost when click back button

From: Date: Sat, 16 Jun 2007 15:57:02 +0000
Subject: Re: The data get lost when click back button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257180@lists.php.net to get a copy of this message
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 if(isset($_SESSION['field1'])) { $field1 = $_SESSION['field1']; } --Paul

« previous php.general (#257180) next »