Re: Help with silly silly problem....

From: Date: Fri, 05 Jan 2001 20:02:00 +0000
Subject: Re: Help with silly silly problem....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32928@lists.php.net to get a copy of this message
It would be better to use the isset function to see if the variables have been set (in case they were set to something that evaluates to FALSE (0). Vicky ----- Original Message ----- From: "Shane McBride" <php@riversidedesigns.net> To: <php-general@lists.php.net> Sent: Friday, January 05, 2001 11:49 AM Subject: [PHP] Help with silly silly problem.... OK, I can not think today (or any other day lately) What's wrong here?: if (($form_var_1) && ($form_val_2) && ($form_val_3)) { echo "You set them all"; } I want to check to make usre all 3 varaibles have been defined, and if so echo the comment..... TIA, Shane

« previous php.general (#32928) next »