Re: isset()

From: Date: Thu, 22 Feb 2001 23:13:39 +0000
Subject: Re: isset()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41116@lists.php.net to get a copy of this message
[PHP] isset()yes, it is the var from the form Jack jacky@activelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message ----- From: Thiva Charanasri To: 'Jacky@lilst' Sent: Thursday, February 22, 2001 3:59 AM Subject: [PHP] isset() Is $AgeChild is the var that passed from a form? < Thiva > Thiva Charanasri Web Administrator Can-Thai Consulting Co., Ltd. #50 Soi 13 Sukhumvit Road Bangkok 10110 Thailand Tel: 662-651-0064 Fax: 662-651-0065 24 Hour Service Line: 662-651-0063 http://www.canthai.com Email: thiva@canthai.com 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"

« previous php.general (#41116) next »