see if isset() works for you

-----Original Message-----
From: Leo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 6:42 PM
To: php.net
Subject: [PHP] checking


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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to