このページでは、PHPが動作していないようです。
http://www.lesconstructionsvignoul.com/contact-us.htmlPHPフォームポストメッセージを送信しない
PHPファイルが欠落しているかどうかを確認しようとしましたが、そこにはパスがあります。
誰かがこれを手伝うことができますか?私はあなたのパラメータが間違って書いたことがわかり
<?php
$post = (!empty($_POST)) ? true : false;
if($post){
$to = "[email protected]"; // Your e-mail here
$name = stripslashes($_POST['inputName']);
$email = trim($_POST['email']);
$subject = stripslashes($_POST['inputSubject']);
$message = stripslashes($_POST['inputMessage']);
$sendToYourself = stripslashes($_POST['sendToYourself']);
$headers = (!empty($sendToYourself)) ? 'Reply-To: '.$email . "\r\n" . " ";
$headers .= "From: ".$name."\r\n" ."X-Mailer: PHP/" . phpversion();
$mail = mail($to, $headers, $subject, $message);
if($mail){
echo 'OK!';
}
}
?>
は、あなたの質問に 'contact.php'のコードを追加することができているはずですので、
のですか? – Manikiran
あなたが美しいデザインを持っていることを見て、とにかくjQueryを使用しているのですが、AJAXを試してみませんか? – Manikiran
else文も追加してみてください。 – Manikiran