RE: Re[2]: [PHP] Lost session variables still confounding me
| From: | Stuart Felenstein | Date: | Thu, 04 Nov 2004 11:36:55 +0000 |
| Subject: | RE: Re[2]: [PHP] Lost session variables still confounding me | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201155@lists.php.net to get a copy of this message | ||
--- "Ford, Mike" <M.Ford@leedsmet.ac.uk> wrote:
> > Page3:
> >
> > if (count($LurkerIndustry) > 5) {
> > $_SESSION['arrayerr'] = "you have selected too
> many industries";
> > $_SESSION['f1a'] = $_POST['ListingName'];
> > header ("Location: TestMulti2.php");
> > exit;
> > }
>
> Well, that's even worse -- because page3 can *never*
> be reached as the
> result of submitting a form, its $_POST[] will
> *always* be empty -- so this
> assignment is also bound to set $_SESSION['f1a'] to
> NULL.
>
Mike, I'll heed your advice, since you haven't let me
down before :). But the variable lasts , I echo it on
every page, including page6 where it's transacted into
the database. I'm not sure why you say that
Stuart