Re: Redirect then error message to user

From: Date: Fri, 22 Oct 2004 19:15:41 +0000
Subject: Re: Redirect then error message to user
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200123@lists.php.net to get a copy of this message
See below: --- Jason Wong <php-general@gremlins.biz> wrote: > What are you trying to do here? > Is 'Page1' == TestMulti4a.php? > Are you trying to display $_SESSION['er'] as set in > Page2? > If so why are you assigning $_POST['er'] to > $_SESSION['er']? All you need to > do is echo $_SESSION['er']. > Yes Page1 - TestMulti4a So slightly changed and I thought it was working, seems TestMulti4a (page1) displays the error when I go to it directly (before input) So on Page2 I have: else { $_SESSION['oops'] = "Use all 3 fields to set a skill"; header("Location: http://www.lurkingforwork.com/TestMulti4a.php" ); exit; } Page1: <?php print $_SESSION['oops'] ?> I even logged out of the session, thinking I was now carrying it through the session. Stuart > Jason Wong -> Gremlins Associates -> > www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet > Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > A witty saying proves nothing. > -- Voltaire > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#200123) next »