Page 1 of 1

Email form

Posted: Wed May 20, 2009 3:09 am
by nachoman316
Hello folks I have a basic email form that posts to a clients email address.

It does have required fields but.

The client has recieved a couple of blank forms people have been adding white space in the required fields and posting the form.

Is their anyway I can rectify this?

Re: Email form

Posted: Wed May 20, 2009 4:16 am
by onion2k
Use trim() on the fields before you validate them.

Re: Email form

Posted: Wed May 20, 2009 4:18 am
by nachoman316
Thanks for the reply it's most appreciated I'll let you know how I get on.