RE: [PHP] Sloppy coding?

From: Date: Wed, 07 May 2003 04:34:49 +0000
Subject: RE: [PHP] Sloppy coding?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146622@lists.php.net to get a copy of this message
> That would clear it up, except that I use the first if() all of time and > it > doesn't execute if I haven't defined the var, such as a script that > receives > post or get and that var was not included in the post or get. In that case the variable would be "" or unset, so that's why it won't execute. Another thing to note is that your first version will generate Warnings at high error reporting levels if the variable is not set. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#146622) next »