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

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

 



--- Richard Davey <rich@xxxxxxxxxxxxxxxx> wrote:

> 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.
> 

I'm a bit confused, this fixes the problem ? 

Stuart

-- 
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