Re: [PHP] flawless script

2003-05-28 Thread David Grant
sven wrote: you can use the default: statement as last case in switch, too. I always use default: to exit() the script, as something is obviously fubar if it gets there... -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117 930 4365, Fax: 0870 169 7625 Wired Med

Re: [PHP] flawless script

2003-05-28 Thread sven
you can use the default: statement as last case in switch, too. "Jason K Larson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Greetings- > > I prefer to check the $_SERVER['REQUEST_METHOD'] before I do anything in a script that > operates for both GET and POST methods. Also

Re: [PHP] flawless script

2003-05-28 Thread Jason k Larson
Greetings- I prefer to check the $_SERVER['REQUEST_METHOD'] before I do anything in a script that operates for both GET and POST methods. Also, especially for a switch statement, I'd check for the existance of the variable first, you know some sort of isset() or !is_null() test. Hope that hel