Re: Session Registering

From: Date: Thu, 25 Apr 2002 16:18:11 +0000
Subject: Re: Session Registering
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94577@lists.php.net to get a copy of this message
I think you have to populate the data in your pages not to wait the browser to do the job. Cause sometimes work and some time not. Craig Donnelly wrote:
Im using session in my form, there are 6 pages to the form, It all works fine, until You work your way back through the form, to ammend the filled in details. e.g - If I go to page 1, and fill out my name, and post to the next page, heres the code Im using: PHP:------------------------------------------------------------------------ -------- <form method="post" action="page2.php"> <input type="text" name="firstname" value="<?=$_SESSION['firstname'];?>"> </form> ---------------------------------------------------------------------------- ---- Its registered on the top of page2 with the following code: PHP:------------------------------------------------------------------------ -------- session_start(); $_SESSION['firstname']=$_POST['firstname']; ---------------------------------------------------------------------------- ---- That works fine, I have a link on all my pages that links back to the previous page e.g <a href="page1.php">Go Back</a> If I go back to the first page, from the second page the fields are populated fine, but If i continue onto page3.php then go back page1.php is no longer populated!! Any Ideas why this is happening?? and If so a remedy, Is it a code issue or a conf Issue?? Thanks C


« previous php.general (#94577) next »