I am building my first website for my business. I put in a contact me form. I receive e-mails that do not include the requested data. Here is the html code:
<div id="contact_container">
<h1>CONTACT ME</h1>
<p class="contact_text">FREE CONSULTATION</p>
<form action="mail.php" method="post"> <input size="33" name="name" required=""
placeholder="First and Last Name"> <input name="email" required=""
size="33" placeholder="E-mail Address" type="text"> <input name="phonenumber"
required="" size="33" placeholder="Phone Number" type="text"><textarea
name="message" rows="6" cols="25" placeholder="Message"></textarea>
<input value="Send" type="submit"> </form>
<div id="address">
Here is the PHP:
<?php
$name = $_Post['name'];
$email = $_Post['email'];
$phonenumber = $_Post['phoneumber'];
$message = $_Post['message'];
$formcontent="From: $name \n Message: $message \n Phone Number: $phonenumber";
$recipient = "example@example.com";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail ($recipient, $subject, $formcontent, $mailheader) or die("Error!);
echo "Thank You!";
?>
Where have I gone wrong?