note 8132 added to empty
| From: | rusty at socrates dot berkeley dot edu | Date: | Mon, 28 Aug 2000 20:30:53 +0000 |
| Subject: | note 8132 added to empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3560@lists.php.net to get a copy of this message | ||
Oops; hit the submit button too early. I forgot to add that using my method above will allow people
to submit 0 in form fields.
If the !isset is true then the string comparison won't be done since the expression is true at
that point, and if it is set then php does the string comparison.
http://www.php.net/manual/function.empty.php