This is the first PHP coding I've done so far, an email form. Everything works perfectly except what I need most: the info I'm trying to get. I've gone over it for an hour or so, checking and rechecking the variables and such to make sure I've done nothing wrong. Help!!!
index.html code:
<FORM METHOD="POST" ACTION="vavinterest.php">
<input type="text" name="sender_email" size=20 maxlength=50><p>
<input type="submit" value="Submit">
vavinterest.php code:
<?php
$email = "$_POST[sender_email]";
$mailheaders = "From: $sender_email\n";
$mailheaders .= "Reply-To: $sender_email\n";
mail("vav@gwytherinn.com", "VAV Interest form", $email, $mailheaders);
echo "<i>Thank you for your submission.</i>";
?>
The recieved email:
Date: 6/26/2003 20:31:59 -0400
From: N/A
To: vav@gwytherinn.com
Subject: VAV Interest form
(nothing in the body)
Can someone enlighten me on what I'm doing wrong?