query("SELECT * FROM settings"); $info = $db->fetch_array($data); if ($_SERVER["REQUEST_METHOD"] == "POST" && $_GET["op"] == "contact") { $name = $_POST["name"]; $email = $_POST["email"]; $comment = $_POST["message"]; $ip = $_POST['ip']; $sub = "New message"; $to = $info['email']; $subject = $sub; $message = ' Message:' . $comment . ' Email:' . $email . ' Name:' . $name . ' IP:' . $ip; $headers = 'From: ' . $info['email'] . '' . "\r\n" . 'Reply-To: ' . $info['email'] . '' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); include "functions/thankyou.php"; exit(); } else { ?> 联系我们 - <?php echo $info['name']; ?>

联系我们