Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contact_us contribution...


Guest

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...