Hi,
I am trying to send the results of a form via email. All boxes work except the comments box, which is a textarea. Does anyone know what I am doing wrong. Below are the coding for the form and the email code:
*******form**********
<!--#include file="header.inc"-->
<form action="enquiry.php3" name="frmEnquiry" id="frmEnquiry" method="get">
<TABLE border=0 width="100%">
<TR>
<TD vAlign=top width=125><!--#include file="lhmenu.inc"--></TD>
<!-- start of middle column -->
<TD vAlign=top><DIV align=center><br>
<TABLE border=0 cellPadding=2 cellSpacing=0 width=480 style="WIDTH: 484px">
<TR bgColor="#0068a0">
<TD colSpan=4 vAlign=top style="FONT-SIZE:10pt; COLOR: #ffffff"><B>Enquiry \ Comments</B></TD>
</TR>
<TR>
<TD colSpan=4 style="FONT-SIZE:10pt"><br>Please fill all boxes.</TD>
</tr>
<tr>
<td>
<table cellspacing="2" cellpadding="2" border="0" class="formfeedbackcalss">
<tr>
<td style="FONT-SIZE:10pt" valign=top>Name:</td>
<td><input name="name" size="16" style="height: 18px; width: 300px"></td>
</tr>
<tr>
<td style="FONT-SIZE:10pt" valign=top>Company:</td>
<td><input name="company" size="16" style="height: 18px; width: 300px"></td>
</tr>
<tr>
<td style="FONT-SIZE:10pt" valign=top>E-mail:</td>
<td><input name="email" size="16" style="height: 18px; width: 300px"></td>
</tr>
<tr>
<td style="FONT-SIZE:10pt" valign=top>Comments \ Enquiry:</td>
<td><textarea cols="50" name"comments" rows="10" style="height: 86px; width: 300px"></textarea></td>
</tr>
<tr>
<td><br><br><input type="submit" value="Submit" name="cmdGo"><input type="reset" value="Reset" name="B2"></td>
</tr>
</table>
</td>
</tr>
</form>
</TR>
</TABLE>
</DIV></TD>
<TD align=right vAlign=top width=125>
<TABLE width=125>
<TR>
<TD><!-- start of right hand column --><!--#include file="rhmenu.inc"--></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<!-- start of bottom section -->
<!--#include file="footer.inc"-->
*********end of form***********
*********php behind the form*******
<?php
$sTo = "Mel Bagley <mel@entrax.co.uk>";
$sFrom = "Enquiry Form <enquiries@entrax..co.uk>";
$sSubject = "Results from Enquiry Form";
$sBody = "You have the following results:\n";
$sBody .= "-------------------------------\n";
$sBody .= "Name: $name\n";
$sBody .= "Company: $company\n";
$sBody .= "Email: $email\n";
$sBody .= "Comments: $comments\n";
mail($sTo, "$sSubject", $sBody, "From: $sFrom\n");
echo $comments;
********end of php***********