Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

contact form filtering spam


Guest

Recommended Posts

at present there's an email validation feature for contact_us.php

 

how would one go about validating enquiry as well?

 

such as, allowing only letters, numbers, punctuation and $

 

 

it's becoming quite tiresome having spammers from overseas type in chinese with html - they're wasting valuable moments of my life having to read and delete this rubbish, as they're becoming more frequent day by day because they know there's no error checking on my forms (if it happens to me, it can happen to any of you ;) )!

 

i'm wondering if something like:

if (eregi("^[A-Z0-9._$%-]{2,6}$", $enquiry))

 

would work? (maybe not, i just copied that from a different email validation form i use that i merged into my shop)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...