Email form

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
nachoman316
Forum Newbie
Posts: 12
Joined: Sat Apr 11, 2009 6:40 am

Email form

Post 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?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Email form

Post by onion2k »

Use trim() on the fields before you validate them.
nachoman316
Forum Newbie
Posts: 12
Joined: Sat Apr 11, 2009 6:40 am

Re: Email form

Post by nachoman316 »

Thanks for the reply it's most appreciated I'll let you know how I get on.
Post Reply