Re: When a form var is empty, how do you tell?
| From: | Lewis Bergman | Date: | Sun, 11 Mar 2001 21:05:00 +0000 |
| Subject: | Re: When a form var is empty, how do you tell? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43409@lists.php.net to get a copy of this message | ||
isset($somevar)
if($somevar == '') {
<code>
}
foreach ($HTTP_POST_VARS as $k => $v){
if(!isset($v)){
<code>
}
}
Take your pick. There are probably about two dozen other better ways.