Forum Moderators: coopster
<form id="form1" name="form1" method="post" action="send_info.php">
<div align="center">
<legend class="tablecontent">First Name</legend>
<input type="text" name="FirstName" id="First Name" />
</div>
<div align="center">
<legend class="tablecontent">Last Name</legend>
<input type="text" name="LastName" id="Last Name" />
</div>
<div align="center">
<legend class="tablecontent">Email Address</legend>
<input type="text" name="Email" id="Email Address" />
</div>
<p align="center"><input type="image" src="images/Download_button.jpg" value="submit" width="100" height="20" /></p>
</form>
<?php
$first_name = $_POST['FirstName'] ;
$last_name = $_POST['LastName'] ;
$email = $_POST['Email']
$Body = "";
$Body = "First Name: ";
$Body = $first_name;
$Body = "Last Name";
$Body = $last_name;
$Body = "Email: ";
$Body = $email;
$headers = "From: $email";
mail( "me@email.com", "Contact Info", $Body, $headers );
header( "Location: http://www.example.com/thankyou.html" );
?>