Checking for blanks/missing inputs
Posted on 2000-03-30
I am writing a script which needs to process a form and then 'do things' with the data. I have done the processing parts, but I have a problem.
- How do you check if there is a blank field (ie, there has been no data entered).
- How do you check if there is a space somewhere in the field.
If any one of these are ture, then write out an error.
The problem I am having is when people enter ' ' into a field (in other words they enter loads of spaces).
Any ideas! Thanks in advance!
Graeme Sandwell :-)