表单发送、验证和重定向工作,但感谢页面显示错误的样式。我不是经验丰富的编码员,也不知道如何修复代码以显示正确的样式。
<?php
$email_to = my@email;
$email_subject = "Contact";
$email_from = $_POST['email'];
$thankyouurl = "http://www.villalotus.net/TEST/TESTVILLALOTUS/kiitosviesti.html";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to,$email_subject,$email_body,$headers);
header( "Location: $thankyouurl");
exit();
?>