Re: [PHP] Re: Question: Passing error messages

2004-11-06 Thread Stuart Felenstein
--- Daniel Schierbeck <[EMAIL PROTECTED]> wrote: > Where are you redirecting the client to? An error > page? Either an error page or back out to a main page. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Question: Passing error messages

2004-11-06 Thread Daniel Schierbeck
Stuart Felenstein wrote: I'm saying, currently if there is an error and the script needs to exit, I'm doing this : if ..error { $_SESSION['ErMsg'] = "Submit Failure"; header (location: ) exit; } I want to know what alternatives there are to error messages aside from using a session variable

Re: [PHP] Re: Question: Passing error messages

2004-11-06 Thread Stuart Felenstein
--- Daniel Schierbeck <[EMAIL PROTECTED]> wrote: > I'm not quite getting what you're saying - are you > sending the error > messages on to a new page?! The usual and simple way > of doing this is > the good 'ol OR operator: > I'm saying, currently if there is an error and the script needs to