note 47732 added to function.empty
| From: | oschnieders at web dot de | Date: | Fri, 26 Nov 2004 22:28:31 +0000 |
| Subject: | note 47732 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81082@lists.php.net to get a copy of this message | ||
I want to use empty in a if-function. i want to check, i something wrote something in a testarea,
where a text has to be.
if (empty($_POST[""])) $vorname = $_POST[""];
{ #evaluates true;
echo "Fill in all fields<p>";
}
i don´t works. Please correct my script.
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47732
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47732&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47732&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47732&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47732&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47732&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47732&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47732&report=yes
Search -- http://master.php.net/manage/user-notes.php