isset()
| From: | Jacky@lilst | Date: | Thu, 22 Feb 2001 23:07:29 +0000 |
| Subject: | isset() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41115@lists.php.net to get a copy of this message | ||
People
I tried to check if teh field has set a vaule in it before submit using isset with the sniplet below
if ((isset($AgeChild))=="false") {
$AgeChild = "NA";
}
The resule is that it always displays NA whether or not it has vaule in the field, what is the
correct way of using isset for this purpose? Or should I use empty() ?
Jack
jacky@activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for yourself"