Re[2]: Lost session variables still confounding me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux