Re: flawless script

From: Date: Wed, 28 May 2003 10:34:17 +0000
Subject: Re: flawless script
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-149221@lists.php.net to get a copy of this message
you can use the default: statement as last case in switch, too. "Jason K Larson" <jlarson@candlefire.org> schrieb im Newsbeitrag news:3ED48326.7020308@candlefire.org... > 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 helps. > > -- > Jason k Larson >

« previous php.general (#149221) next »