Re: checking

From: Date: Fri, 28 Jun 2002 13:19:41 +0000
Subject: Re: checking
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104308@lists.php.net to get a copy of this message
On Thursday, June 27, 2002, at 04:41 AM, Leo wrote:
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?
http://www.php.net/empty ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#104308) next »