Re[2]: [PHP] Lost session variables still confounding me

From: Date: Thu, 04 Nov 2004 10:09:58 +0000
Subject: Re[2]: [PHP] Lost session variables still confounding me
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-201142@lists.php.net to get a copy of this message
Hello Stuart, Thursday, November 4, 2004, 10:02:53 AM, you wrote: SF> Your not mistaken. That is what's happening. I just don't know how SF> to fix it . Before setting the session value in Page 2, check for the existence of the $_POST value first. if (isset($_POST['var'])) { $_SESSION['var'] = $_POST['var']; } When you now redirect to Page 2 upon an error, it'll skip this block because the $_POST var won't exist. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde

« previous php.general (#201142) next »