Created
June 8, 2018 04:28
-
-
Save IamSohaggazi/8dfcdb5ca44821e417319634e50779f3 to your computer and use it in GitHub Desktop.
This file contains 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
<? | |
$name=$_POST['name']; | |
$Email=$_POST['email']; | |
$website=$_POST['url']; | |
$message=$_POST['message']; | |
$body .= "Name: " . $name . "\n"; | |
$body .= "Email: " . $Email . "\n"; | |
$body .= "Website: " . $website . "\n"; | |
$body .= "Message: " . $message . "\n"; | |
//replace with your email | |
mail("yourmail@mail.com","New email",$body); | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<script>alert("Your message has been sent successfully. We will contact you shortly.");</script> | |
<meta HTTP-EQUIV="REFRESH" content="0; url=index.html"> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment