Home                   Contact
 

CCBC Banner

       
 
 

 

       Red pawprint LINKS  

WEB FORM Trial

Sign up now for our
e-Newsletter

 

 

 


 

Sign up now for our E-Newsletter


 

 

 

 

 

 

 

 

Site best viewed on  Internet Explorer

 
 

 

 DISCLAIMER *
Attached is a list of recommended links, CCBC does not promote or benefit from any of these links.  These links are provided for information and assistance only.


 

Malicious code content detected.
Your IP Number of ".getenv("REMOTE_ADDR")." has been logged.

"; /******** END OF CONFIG SECTION *******/ $name = $HTTP_POST_VARS['name']; $email = $HTTP_POST_VARS['email']; $message = $HTTP_POST_VARS['message']; $headers = "From: $emailn"; $headers . "MIME-Version: 1.0n" . "Content-Transfer-Encoding: 7bitn" . "Content-type: text/html; charset = "iso-8859-1";nn"; if ($SpamCheck == "Y") { // Check for Website URL's in the form input boxes as if we block website URLs from the form, // then this will stop the spammers wastignt ime sending emails if (preg_match("/http/i", "$name")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$email")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$message")) {echo "$SpamErrorMessage"; exit();} // Patterm match search to strip out the invalid charcaters, this prevents the mail injection spammer $pattern = '/(;|||`|>|<|&|^|"|'."n|r|'".'|{|}|[|]|)|()/i'; // build the pattern match string $name = preg_replace($pattern, "", $name); $email = preg_replace($pattern, "", $email); $message = preg_replace($pattern, "", $message); // Check for the injected headers from the spammer attempt // This will replace the injection attempt text with the string you have set in the above config section $find = array("/bcc:/i","/Content-Type:/i","/cc:/i","/to:/i"); $email = preg_replace($find, "$SpamReplaceText", $email); $name = preg_replace($find, "$SpamReplaceText", $name); $message = preg_replace($find, "$SpamReplaceText", $message); // Check to see if the fields contain any content we want to ban if(stristr($name, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} if(stristr($message, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} // Do a check on the send email and subject text if(stristr($sendto, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} if(stristr($subject, $SpamReplaceText) !== FALSE) {echo "$SpamErrorMessage"; exit();} } // Build the email body text $emailcontent = " ----------------------------------------------------------------------------- WEBSITE CONTACT ENQUIRY ----------------------------------------------------------------------------- Name: $name Email: $email Message: $message _______________________________________ End of Email "; // Check the email address enmtered matches the standard email address format if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+.[A-Z]{2,6}$", $email)) { echo "

It appears you entered an invalid email address

Click here to go back.

"; } elseif (!trim($name)) { echo "

Please go back and enter a Name

Click here to go back.

"; } elseif (!trim($message)) { echo "

Please go back and type a Message

Click here to go back.

"; } elseif (!trim($email)) { echo "

Please go back and enter an Email

Click here to go back.

"; } // Sends out the email or will output the error message elseif (mail($sendto, $subject, $emailcontent, $headers)) { echo "

Thank You $name

We will be in touch as soon as possible.

"; } } else { ?>

Please complete all details of your enquiry
and we will get back to you shortly.


Name:

E-mail:

Message:

Supplied by MMS Business Works

 

© All information contained within the pages of this site is the property of
Collie Club of British Columbia.  

CCBC was founded in 1986 and is recognized by CKC
 (Canadian Kennel Club)
This website was created, designed & maintained by MMS Business Works