RE: [PHP] check null value

2001-01-23 Thread Cal Evans
I would try: if (isset($fieldname) && empty($fieldname)){ // do something here with the variable } else { $fieldname="na"; } // if (isset($fieldname) && empty($fieldname)) Cal http://www.calevans.com -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: Tuesday, J

Re: [PHP] check null value

2001-01-23 Thread CC Zona
In article <019301c08581$e9504080$6400a8c0@alsmpdc>, [EMAIL PROTECTED] ("Jacky@lilst") wrote: > If I have one input text box that when it is submitted to next page, I want > to check first if it is nothing, then write "na" on next page, else just > echo whatever it is, is it correct to do this