Hi, I’m brand spanking new at php, and was trying to put together a contact form. It works just fine except the only info it sends is what is in the textarea “message” box”. It dosen’t send the name, phone, address, or anything. I’ve included the php which is a separate file on my site, and a sample of the html below which is on my contact page. Any help is highly appreciated. Thanks!
THE PHP:
<?php
$name = $_REQUEST[‘name’] ;
$email = $
$phone = $_REQUEST[‘phone’] ;
$address = $
$message = $_REQUEST[‘message’] ;
mail( “
$message, “From: $email” );
header( “Location:
?>
THE HTML:
<div id=”contact”><form method=”post” action=”sendmail.php”>
<p>Name: <input type=”text” name=”name” value=”” size=”20″><br />
Email: <input type=”text” name=”from” value=”” size=”20″><br />
Phone: <input type=”text” name=”Phone” value=”” size=”20″><br />
Address: <input type=”text” name=”Address” value=”” size=”20″><br />
<textarea name=”message” rows=”15″ cols=”40″>
</textarea><br /><br />
<input type=”submit” />
</p>
</form>
</table>
</div>