관리-도구
편집 파일: contact_sent.php
<?php include 'admin/process/config.php'; $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['number']; $category = $_POST['category']; $msg = $_POST['msg']; if($email != '') {?> <?php $to = 'info@zamorindecorate.com'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= "From: " . $email . "\r\n"; // Sender's E-mail $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $message ='<table style="width:100%"> <tr><td>Name: '.$name.'</td></tr> <tr><td>Email: '.$email.'</td></tr> <tr><td>Phone: '.$phone.'</td></tr> <tr><td>Message : '.$msg.'</td></tr> </table>'; if (@mail($to, $email, $message, $headers)) { echo "<script>location.href='contact.php?p=6&m=ok';</script>"; //header("index.php?p=6&add=ok"); }else{ echo 'failed'; } } $conn->close(); ?>