Page 2 of 2

Re: Problem with form

Posted: Thu Apr 24, 2008 11:01 am
by aceconcepts
I use empty() too, but you need to be careful with it. Think about what will happen if the user needs to insert "0" (zero) as a string into a field. empty() will reject it because it's a bit stupid.
Yeah I agree, for my own practice I usually carry out further validation on my data other than just empty() :D