Re: Redirect then error message to user

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

 



The only problem I'm having here is that if a user
goes backwards, the error from the session variable
will show up.  I put an unset $...... underneath the
echo but that seems to have no effect.


Stuart
--- Stuart Felenstein <stuart4m@xxxxxxxxx> wrote:

> See below:
> --- Jason Wong <php-general@xxxxxxxxxxxx> 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
> > 
> > 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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