bookwala
04-17-2007, 02:09 AM
Hi Guys...
I have a problem with this form. I was trying to make a form and link it to PHP page so that when a user fills the form the content of the form is mail to a particular mail id. The problem is I am not able to link the form page with the PHP page. The coding is given below for your reference. Help Required!!!
<form name=login_frm1 action=thanks.php method=post onSubmit="return validateForm(this)">
<TABLE width="90%" border=0 align=center cellPadding=0 cellSpacing=0 class="enquirytable" style="BORDER-RIGHT: #eaeaea 1px solid; BORDER-TOP: #eaeaea 1px solid; BORDER-LEFT: #eaeaea 1px solid; BORDER-BOTTOM: #eaeaea 1px solid">
<TBODY>
<TR vAlign=top>
<TD>
<table cellspacing="0" cellpadding="0" width="90%"
border="0">
<!--
<tr><td colspan="3">
</tr></td>-->
<tbody>
<tr valign="top">
<td class="paneltitle02" colspan="3"><img
src="img/value_arrow01.gif" width="9" height="6" /> Product Enquiry </td>
</tr>
<tr valign="top">
<td width="9" class="txtcol01"> </td>
<td width="233" class="enquiryfeatures01"> </td>
<td width="248" class="features02"><span class="txtcol01">*</span> all fields are
Mandatory </td>
</tr>
<tr valign="top">
<td class="txtcol01">*</td>
<td class="enquiryfeatures01"><b>Name:</b></td>
<td class="features02"><p>
<input class="txtfield02" name="firstname" onkeypress="return OnlyLetters(event);"/>
<br />
<img src="img/blankimage.gif" name="firstnameerror" width="350" height="10" border="0"/> </p>
</td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Organisation:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<input
class="txtfield02" maxlength="20" name="organisation" />
<br />
<img src="img/blankimage.gif" name="organisationerror" width="350" height="10" border="0" id="organisationerror" /><br />
</p></td>
</tr>
<tr valign="top">
<td class="txtcol01">*</td>
<td class="enquiryfeatures01"><b>Email:</b></td>
<td class="features02"><input class="txtfield02" maxlength="60" name="email" />
<br />
<img src="img/blankimage.gif" name="emailerror" width="350" height="10" border="0" id="emailerror" /></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Telephone:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<input class="txtfield02" maxlength="20" name="phoneno" onkeypress="return OnlyNumbers(event);" />
<br />
<img src="img/blankimage.gif" name="phoneerror" width="350" height="10" border="0" id="phoneerror" /></p></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Address:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<textarea name="address" cols="30" rows="4" class="txtfield02"></textarea>
<br />
<img src="img/blankimage.gif" name="addresserror" width="350" height="10" border="0" id="addresserror" /></p></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px"> </td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"> </td>
<td class="features02" style="HEIGHT: 23px"><p><span class="style4">*</span> Please fill the details in the Comments box provided below:<br />
Product Code, Quantity and any other Information you find relevant for us to help you. </p></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Comments:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<textarea name="comments" cols="30" rows="4" class="txtfield02"></textarea>
<br />
<img src="img/blankimage.gif" name="commentserror" width="350" height="10" border="0" id="commentserror" /></p></td>
</tr>
</tbody>
</table>
</table>
<table width="91%" border="0" align="center" cellpadding="0"
cellspacing="0"
style="BORDER-RIGHT: #eaeaea 1px solid; BORDER-TOP: #eaeaea 1px solid; BORDER-LEFT: #eaeaea 1px solid; BORDER-BOTTOM: #eaeaea 1px solid">
<tbody>
<tr>
<td class="features03"><input class="btn01" type="submit" value="Submit" name="submit"/>
<input class="btn01" id="Reset" type="reset" value="Reset" name="Reset" />
</td>
</tr>
</tbody>
</table>
</form>
I have a problem with this form. I was trying to make a form and link it to PHP page so that when a user fills the form the content of the form is mail to a particular mail id. The problem is I am not able to link the form page with the PHP page. The coding is given below for your reference. Help Required!!!
<form name=login_frm1 action=thanks.php method=post onSubmit="return validateForm(this)">
<TABLE width="90%" border=0 align=center cellPadding=0 cellSpacing=0 class="enquirytable" style="BORDER-RIGHT: #eaeaea 1px solid; BORDER-TOP: #eaeaea 1px solid; BORDER-LEFT: #eaeaea 1px solid; BORDER-BOTTOM: #eaeaea 1px solid">
<TBODY>
<TR vAlign=top>
<TD>
<table cellspacing="0" cellpadding="0" width="90%"
border="0">
<!--
<tr><td colspan="3">
</tr></td>-->
<tbody>
<tr valign="top">
<td class="paneltitle02" colspan="3"><img
src="img/value_arrow01.gif" width="9" height="6" /> Product Enquiry </td>
</tr>
<tr valign="top">
<td width="9" class="txtcol01"> </td>
<td width="233" class="enquiryfeatures01"> </td>
<td width="248" class="features02"><span class="txtcol01">*</span> all fields are
Mandatory </td>
</tr>
<tr valign="top">
<td class="txtcol01">*</td>
<td class="enquiryfeatures01"><b>Name:</b></td>
<td class="features02"><p>
<input class="txtfield02" name="firstname" onkeypress="return OnlyLetters(event);"/>
<br />
<img src="img/blankimage.gif" name="firstnameerror" width="350" height="10" border="0"/> </p>
</td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Organisation:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<input
class="txtfield02" maxlength="20" name="organisation" />
<br />
<img src="img/blankimage.gif" name="organisationerror" width="350" height="10" border="0" id="organisationerror" /><br />
</p></td>
</tr>
<tr valign="top">
<td class="txtcol01">*</td>
<td class="enquiryfeatures01"><b>Email:</b></td>
<td class="features02"><input class="txtfield02" maxlength="60" name="email" />
<br />
<img src="img/blankimage.gif" name="emailerror" width="350" height="10" border="0" id="emailerror" /></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Telephone:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<input class="txtfield02" maxlength="20" name="phoneno" onkeypress="return OnlyNumbers(event);" />
<br />
<img src="img/blankimage.gif" name="phoneerror" width="350" height="10" border="0" id="phoneerror" /></p></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Address:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<textarea name="address" cols="30" rows="4" class="txtfield02"></textarea>
<br />
<img src="img/blankimage.gif" name="addresserror" width="350" height="10" border="0" id="addresserror" /></p></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px"> </td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"> </td>
<td class="features02" style="HEIGHT: 23px"><p><span class="style4">*</span> Please fill the details in the Comments box provided below:<br />
Product Code, Quantity and any other Information you find relevant for us to help you. </p></td>
</tr>
<tr valign="top">
<td class="txtcol01" style="HEIGHT: 23px">*</td>
<td class="enquiryfeatures01" style="HEIGHT: 23px"><b>Comments:</b></td>
<td class="features02" style="HEIGHT: 23px"><p>
<textarea name="comments" cols="30" rows="4" class="txtfield02"></textarea>
<br />
<img src="img/blankimage.gif" name="commentserror" width="350" height="10" border="0" id="commentserror" /></p></td>
</tr>
</tbody>
</table>
</table>
<table width="91%" border="0" align="center" cellpadding="0"
cellspacing="0"
style="BORDER-RIGHT: #eaeaea 1px solid; BORDER-TOP: #eaeaea 1px solid; BORDER-LEFT: #eaeaea 1px solid; BORDER-BOTTOM: #eaeaea 1px solid">
<tbody>
<tr>
<td class="features03"><input class="btn01" type="submit" value="Submit" name="submit"/>
<input class="btn01" id="Reset" type="reset" value="Reset" name="Reset" />
</td>
</tr>
</tbody>
</table>
</form>