Re: Checking for empty()
| From: | Brad Bonkoski | Date: | Wed, 14 Jun 2006 18:16:09 +0000 |
| Subject: | Re: Checking for empty() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237994@lists.php.net to get a copy of this message | ||
Weel, since this is a PHP list I will assume you are checking once the page is posted/submitted...
off the top of my head, the functions strlen() and isset() come to mind.
-Brad
Ashley M. Kirchner wrote:
I have a form with various fields on it that I want to make sure aren't empty or the user didn't just hit the space bar or return (in a text field). What's the best way to do this? Seems empty() will fail on a textarea if the user simply hits a space or return and submits the form.