check($_POST['captcha_code']) == false) { // the code was incorrect // you should handle the error so that the form processor doesn't continue // or you can use the following code if there is no validation or you do not know how echo "The security code entered was incorrect.

"; echo "Please go back and try again."; exit; } if(empty($errors)) { //send the email $to = $your_email; $subject="New form submission"; $from = $your_email; $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $body = "A user $name submitted the contact form:\n". "Name: $name\n". "Email: $visitor_email \n". "Message: \n ". "$user_message\n". "IP: $ip\n"; $headers = "From: $from \r\n"; $headers .= "Reply-To: $visitor_email \r\n"; mail($to, $subject, $body,$headers); header('Location: merci.html'); } } // Function to validate against any email injection attempts function IsInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } ?> Contact et réservation d'une activité famille en Côte d'Azur - l'élixir d'amour
Accueil > Contact

nous avons l'amour du

contact

par téléphone

Pour joindre l'élixir d'amour, merci de contacter Rémi Collin au +33 (0)6 26 23 26 34. Joignable en semaine du lundi au vendredi de 9h à 19h. Le week-end uniquement sur rendez-vous ou en cas de projet urgent.

par mail

".nl2br($errors)."

"; } ?>




CAPTCHA Image [ Different Image ]