I have an email form to collect data that I send to a script called "mail.php3". This script emails me the form data. Everything seems to be working fine except that I don't get any data! Any suggestions?
Here is the form:
<form action="../mail.php3" method="post" enctype="text/plain" target="_blank">
<table cellspacing="5" cellpadding="5" border="0">
<tr>
<td align="left" valign="center">
First Name
</td>
<td align="left" valign="bottom">
<input type="text" name="firstname" size="20">
</td>
</tr>
<tr>
<td align="left" valign="center">
Last Name
</td>
<td align="left" valign="bottom">
<input type="text" name="lastname" size="20">
</td>
</tr>
</table>
<input type="submit" value="submit"> <input type="reset">
</form>
Here is the script:
<?php
$body=
"First Name: $firstname
Last Name: $lastname";
mail("tester@unitedomains.com","form results",$body);
$location="http://butterfly-ballot.net";
header("Location: $location");
?>