Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // HONEYPOT
- $fake1 = $_POST['sender_name'];
- $fake2 = $_POST['sender_email'];
- if($fake1 || $fake2) {
- die();
- }
- else {
- // GRAB VARIABLES
- $name = htmlspecialchars($_POST['name']);
- $email = htmlspecialchars($_POST['email']);
- $phone = htmlspecialchars($_POST['topic']);
- $comments = htmlspecialchars($_POST['comments']);
- // SET UP EMAIL DATA
- $to = 'cd@guitarart.co.il';
- $subject = "הודעה חדשה מלקוח";
- $message = "הפרטים שהתקבלו הם \n\n Name: $name\n Phone: $phone\n Message: $comments\n";
- $headers = "From: $email";
- // USE MAIL FUNCTION
- mail($to, $subject, $message, $headers);
- // REDIRECT AFTER SEND
- header("Location: http://www.guitarart.co.il/Thanks.php");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement