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?
> 
> if (empty($fieldname)){
> $fieldname ="na";
> }

You might also want to throw in a check for !isset($fieldname), either 
before the check for empty() or concurrent with it.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to