note 47740 added to function.is-null
| From: | mickyfunk at hotmail dot com | Date: | Sat, 27 Nov 2004 11:47:02 +0000 |
| Subject: | note 47740 added to function.is-null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81091@lists.php.net to get a copy of this message | ||
I am having problems with a function, it allows me to see whether or not somebody has entered text
within the text box.
<?php
function validatesearch(){
if (is_null($txtEventSearch))
{
echo ("events.php?error=true");
}
else
{
echo ("search.php");
}
}
?>
could anyone tell me what i have done wrong the only part of the function it runs is the
echo("events.php?error=true");
----
Manual Page -- http://www.php.net/manual/en/function.is-null.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47740
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47740&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47740&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47740&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47740&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47740&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47740&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47740&report=yes
Search -- http://master.php.net/manage/user-notes.php