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

[PHP] Re: Question: Passing error messages

2004-11-06 Thread Daniel Schierbeck
Stuart Felenstein wrote: I've started getting into the habit of passing error messages through session variables, particularly on redirects. From some peoples reaction on this list I gather it's not the best practice. What is an alternative way ? I believe it's through a URL. not sure how to go abo