note 60997 rejected from function.strlen by tularis
| From: | tularis@php.net | Date: | Mon, 23 Jan 2006 09:38:25 +0000 |
| Subject: | note 60997 rejected from function.strlen by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102270@lists.php.net to get a copy of this message | ||
Note Submitter: contact at lattery dot com
----
Use strlen() for form inputs to edit out blank inputs. For instance:
if (strlen($file) > 0) {
--execute code using $file--
}
else {
echo "You did not add any input";
}