データをメールに送信しようとしてform
いますが、正しく機能していません。これが私がこれまでに持っているものです:
<?php
$to = "someemail@thisplace.com";
$subject = "Contact Us";
$email = $_REQUEST['email'];
$message = $_REQUEST['comment/questions'];
$name = $_REQUEST['name'];
$phone = $_REQUEST['phone'];
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers);
if ($sent) {
print "Your Comments/Questions have been sent. Thank You!";
} else {
print "We encountered an error sending your Comments/Questions!";
}
?>