Re: Help with silly silly problem....

From: Date: Fri, 05 Jan 2001 22:42:52 +0000
Subject: Re: Help with silly silly problem....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-32967@lists.php.net to get a copy of this message
Hi, Without forgetting that a variable might be -set- without actually -containing- anything. The strlen() way seems more appropriate in certain circumstances. ""Vicky"" <php@vickyatkinson.com> a écrit dans le message news: 001f01c07752$61666ce0$4be16ed1@uspppmtz... > 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 > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32967) next »