Re: empty variables from a form

From: Date: Wed, 05 Feb 2003 19:02:31 +0000
Subject: Re: empty variables from a form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134464@lists.php.net to get a copy of this message
> how would you test for an empty (unused) variable from a form.. > i have a phone number split into 3 different vairiables and want to test to > see if they were used in the form before displaying either the phone number > itself or just leaving it out of the display... what code would be good to > test it with.. the variables are $ac2 $ext2 and $num2 ummmmmm.... i don't know.... maybe.... empty() ? www.php.net/empty ---John Holmes...

« previous php.general (#134464) next »