Re: Checking for empty values sent from a form
| From: | Niels Andersen | Date: | Thu, 06 Mar 2003 13:38:14 +0000 |
| Subject: | Re: Checking for empty values sent from a form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138462@lists.php.net to get a copy of this message | ||
Since input from a form are strings, you can check like this:
if ($_POST['your_input_name'] == '')
// field is empty
"Shaun" <shaun@mania.plus.com> wrote in message
news:20030306132422.30025.qmail@pb1.pair.com...
> Is there an easy way to scan through an array of values sent from a form
to
> see if any of them are empty?
>
>