|
you have your post/action incorrect. hopefully this helps:
1: change this line of code
<form id="ContactUs" name="ContactUs" method="post" action="contactus.php" >
This makes the form post to a php file and email it to you.
2: copy and paste this code in your favorite text editor and save it as "contactus.php" then upload to the same folder as your contactus.html
here is the code for php file
<?
$your_email = "info@medievalmagic.ca";
$headers= "From: ".$_POST['name']." <".$_POST['EmailAddress'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'], "
<html>
<head>
<title>Contact Us</title>
</head>
<body>
Contact Message<br><br>
Full Name : ".$_POST['Name']."<br>
Email : ".$_POST['EmailAddress']."<br>
Question : ".$_POST['Question']."<br>
</body>
</html>" , $headers);
header("Location: ./contact_message.html");
?>
3: create an html file named "contact_message.html" this is called your success page, you can put some text like "email received, we will get back to you as soon as possible" you can use the same page as your contact us page, rename it and change text.
I hope this helps if you have any questions feel free to ask. good luck
|