The problem I am having is that what ever is posted in the form.html does not transfer over to the confirm.php and the email comes up blank.
form.html
<form action="confirm.php" method="POST" >
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="71">
<div align="center">
<font size="6"><b>Customer Enquiry Form:</b></font> </div> </td>
</tr>
</table>
<hr width="400" size="3">
<div align="center">
<input type="hidden" name="recipient">
<input type="hidden"
name="subject" value="Web Enquiry">
<input type="hidden" name="redirect"
value="example@example.com">
</div>
</div>
<div align="center">
<table width="37%" border="0" cellspacing="5" cellpadding="5" class="FormCSS" align="center" height="608">
<tr>
<td width="33%">
<div align="left"><font size="3" face="Times New Roman, Times, serif">Name:</font></div> </td>
<td width="67%">
<input type="text" size="30"
maxlength="50" name="realname">
</td>
</tr>
<tr>
<td width="33%">
<div align="left"><font size="3" face="Times New Roman, Times, serif">Organization:</font></div> </td>
<td width="67%">
<input type="text" size="30" maxlength="50"
name="organisation">
</td>
</tr>
<tr>
<td width="33%">
<div align="left"><font size="3" face="Times New Roman, Times, serif">Address:</font> </div> </td>
<td width="67%">
<textarea cols="30" name="address_line_1" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="33%">
<div align="left">PostCode:</div> </td>
<td width="67%">
<input type="text" size="10" maxlength="15" name="postcode">
</td>
</tr>
<tr>
<td width="33%">
<div align="left">Telephone:</div> </td>
<td width="67%">
<input type="text" size="30"
maxlength="50" name="telephone">
</td>
</tr>
<tr>
<td width="33%">
<div align="left">Fax:</div> </td>
<td width="67%">
<input type="text" size="30" maxlength="50"
name="fax">
</td>
</tr>
<tr>
<td width="33%">
<div align="left">Email:</div> </td>
<td width="67%">
<input type="text" size="30" maxlength="50" name="email">
</td>
</tr>
<tr>
<td width="33%">Type of enquiry:<br>
(e.g. graphics, websites)</td>
<td width="67%">
<textarea
name="text" rows="5" cols="30"></textarea>
</td>
</tr>
<tr>
<td colspan="2" height="2">
<div align="center"> <font color="#EABB00">
<input type="submit" name="send form" value="Submit Enquiry">
<input
type="reset" name="clear form" value="Reset Form">
</font></div>
</td>
</tr>
</table>
</div>
<div align="center">
<div align="right">
<div align="left">
<c></c></div>
</div>
</div>
</form>
<div align="center"><c><a href="index.php"><font face="Times New Roman, Times, serif" size="3"><b>If
you do not wish to complete the form Click here to return to the Index Page</b></font></a></c>
confirm.php
<?php
if ((!$realname) or (!$telephone) && (!$email)) {
echo "Please Enter a Contact Name and either a Telephone Number or an
Email address for Contact purpose's.
Thank You";
echo "<p>";
echo "Please use the 'Back' button to continue.";
echo "</p>";
echo "<a href='/~dpaul/index.php?id=form' onclick='self.history.back();'>Back</a>";
exit;
}
$message = "Name: $realname\n\n"."Organisation: $organisation\n\n"."Address:\n$address_line_1\n\n"."Post Code: $postcode\n\n"."Telephone: $telephone\n\n"."Fax: $fax\n\n"."Email: $email\n\n".
"Message: \n"."$text";
mail("example@example.com","$subject","$message","From:Form.$email\r\nReply-to:$email");
echo "<p>Thank you for completing our contact form. Your details have been forwarded and we will be in contact within 2 working days.</p>";
echo "<p>From: $email</P>";
echo "<p>Subject: $subject</p>";
echo "<p>Message: </p>";
echo "<p>";
echo "$text";
echo "</p><a href='index.php'><b>Return to the Index Page</b></a>";
?>