I've moved my website from this address to this address
Both are hosted by OVH.com
The issue is that now my forms are not getting sent anymore, you can try by inputting something in the contact form at the bottom of the screen and click send (you'll get the green OK message but the message won't go through).
I thought this could be linked to the .htaccess but they are both set the same way:
SetEnv PHP_VER 5_3
SetEnv REGISTER_GLOBALS 0
Any idea what the issue is? I suspect that might be an issue with the htaccess. Does anybody know how to check the php version? EDIT: PHP seems fine, 5.3 is running, as expect
PHP
<?php
// Email Submit
// Note: filter_var() requires PHP >= 5.2.0
if ( isset($_POST['email']) && isset($_POST['name']) && isset($_POST['message']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) {
// detect & prevent header injections
$test = "/(content-type|bcc:|cc:|to:)/i";
foreach ( $_POST as $key => $val ) {
if ( preg_match( $test, $val ) ) {
exit;
}
}
//send email
mail( "dfds@fds.com", "Nouveau message de: ".$_POST['name'], $_POST['message']."\nDepuis la page: ". str_replace("http://", "", $_SERVER['HTTP_REFERER']), "From:" . $_POST['email'] . "\r\n" . "BCC: gdsfdsri@gmail.com" );
}
?>