>Well, Mark... almost! You shouldn't use empty() _instead_ of
>isset(). You should use 'm together:
>
> if (isset ($input) && !empty($input)) {
>   print ("Okay... form is completed!");
> } else {
>   print ("No way... can't do!");
> }
>
>Because, when you check using empty($input) there's still the
>possibility that $input isn't defined at all. And then some horrible
>error still arises in your logfile.

This isn't right, empty() won't give an error if $input isn't set.


--
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