checking
| From: | Leo | Date: | Thu, 27 Jun 2002 08:41:45 +0000 |
| Subject: | checking | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104262@lists.php.net to get a copy of this message | ||
I have a form and I don't want to insert recording with blank value.
I put:
if ($lastname="") {
$insert="no"
}
if ($insert="no"){
do not insert;
else
insert;
}
my probleme is in some case $lastname="" is true and other case is false.
I tried with $lastname=" " but no change. how can I check if a varible is
empty or not?
leo