Re: flawless script

From: Date: Wed, 28 May 2003 09:36:38 +0000
Subject: Re: flawless script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149207@lists.php.net to get a copy of this message
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 (#149207) next »