Hi,
I tend to use the following code to stop users leaving form fields blank: -
if ( (!isset($name)) || (empty($name)) )
But...
I noticed that this doesn't stop people entering a " " or more than one blank if you're not testing for it.
Is there a standard way to resolve this? Ideally I'd like to avoid reinventing the wheel 🙂
TIA
Chris