私はこれにかなりこだわっています。過去にphpメールフォームを作成したときに機能しましたが、私の脳はこれに取り組んでいません。どんなアイデアでも非常に役に立ちます。
<?php
if(isset($_POST['email'])) {
$email_to = "paulsizer12@gmail.com";
$email_subject = "eKoWeld Feedback";
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$company_name = $_POST['company_name'];
$contact_name = $_POST['contact_name'];
$industry = $_POST['industry'];
$do = $_POST['do'];
$material = $_POST['material'];
$TIG_MIG = $_POST['TIG_MIG'];
$Instructions = $_POST['Instructions'];
$easy = $_POST['easy'];
$Before = $_POST['Before'];
$After = $_POST['After'];
$Savings = $_POST['Savings'];
$recommend = $_POST['recommend'];
$another = $_POST['another'];
$testimonial = $_POST['testimonial'];
?>
Thank you for leaving feedback.
<?php
}
?>