I'm thinking this is an easy fix for someone who's familiar with PHP. I've been searching for an answer for 2 days. While great information, none is solving. See the 3rd section below – I receive the form less the field info. What am I doing wrong?
Note that the form itself is wrapped in <html><body><section>
tags which don’t appear below.
This is the form:
<form name="Seller" id="restaurant-fm" action="send2.php" method="POST" enctype="text/plain">
<input type="text" name="name" required="required" id="name" size="25"
value="" placeholder="Your name" autocomplete="on" tabindex="1"
class="txtinput">
<input type="email" name="email" required="required" id="email" size="25" value="" placeholder="Your e-mail address" autocomplete="on" tabindex="2"
class="txtinput">
<input type="tel" name="phone" id="phone" placeholder="Your phone number" tabindex="3" size="12" value="" class="txtinput">
<textarea name="message" id="inquiry" placeholder="(Optional) Enter message here..." tabindex="4" class="txtblock"></textarea>
<section id="buttons">
<input type="submit" name="submit" id="submitbtn" class="submitbtn" tabindex="6" value="CLICK TO GET STARTED">
<br style="clear:both;">
</section>
</form>
2) This is the PHP send script I’m using:
<?PHP
$name= $_POST['name1'];
$email= $_POST['email'];
$phone= $_POST['phone'];
$subject = $_POST["subject"];
$inquiry= $_POST['message'];
$to ="myname@mydomain.com";
$subject= "New Contact";
$message= "A visitor sent you the following information: \n\nname:$name; \n\nemail:$email; \n\nphone:$phone; \n\nmessage:$message; \n\nPlease respond to this inquiry immediately";
$headers = "From: $email";
{mail($to,$subject,$message);
header("Location:/About.html");}
?>
3) Here’s what I receive from the form:
A visitor sent you the following information:
name:;
email:;
phone:;
message:;