Jump to content
Sign in to follow this  
andynewby

Contact_us contribution...

Recommended Posts

I'm not really an expert with OsCommerce, but here it my little contribution :P

 

In contact_us.php, simply add this;

 

      if (!$HTTP_POST_VARS['enquiry']) { echo "Please enter an enquiry!"; exit; } 

     if (!$HTTP_POST_VARS['name'])    { echo "Please enter your name!"; exit; } 

     if (!$HTTP_POST_VARS['email'])   { echo "Please enter your email!"; exit; }

 

after;

 

    if (tep_validate_email(trim($HTTP_POST_VARS['email']))) {

 

It just adds some basic error checking for the other fields....otherwise you will get in-undated with spam ;)

 

Cheers

 

Andy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×