Created
July 15, 2015 17:56
-
-
Save goelvibhor4/4e0f708bbd6e87278bf2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$name = $_POST['name']; | |
$email = $_POST['email']; | |
$phone = $_POST['phone']; | |
$message = $_POST['message']; | |
$formcontent=" From: $name \n Phone: $phone \n message: $message \n"; | |
$recipient = "[email protected]"; | |
$subject = "Contact Form"; | |
$mailheader = "From: $email \r\n"; | |
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); | |
echo "Thank You!" . " -" . "<a href='goelvibhor.net' style='text-decoration:none;color:#ff0099;'> Return Home</a>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment