View Single Post
  #1 (permalink)  
Old 04-27-2006, 10:35 AM
darren13's Avatar
darren13 darren13 is offline
WebProWorld Pro
 
Join Date: Jul 2003
Location: UK
Posts: 244
darren13 RepRank 1
Default Form validation for the email field, using formmail script.

Hello all,
Can't quite find what I'm looking for (I'm sure there are similar cases to mine, but could only find a thread on php forms - not sure if that applies to me), so I'll post this and hope for help! Maybe someone can point me in the right direction?

I've recently added a Subscribe Me form to our webpages (on the left below all the buttons of the holiday site in my signature). I think it's since then that I've been getting loads of 'Mail Returned' or 'Undeliverable' messages in my inbox.

Also I've had lots of forms filled in with just the name 'Dave' for example as the email address. A few people in the php form thread I read (topic 62349) suggested this may be a bot or spammers hijacking the script so I'm a bit concerned.

I've tried using 'Behaviours' in Dreamweaver, but when I tested that in FF & IE, FF sent the form anyway with a pop up warning, and IE just sent it with not even the warning. Not sure if I've done something wrong there, but didn't do what I wanted it to!

I'd just like to make sure that:

a) I'm not allowing hackers or spammers to send from my script, and
b) Visitors have to enter a valid email address to submit the form.

Any help most gratefully received!!

Thanks in advance,
Darren.
Reply With Quote