PDA

View Full Version : Emailing Forms


kazbo
06-30-2004, 07:02 AM
I've written the following code but when I try and fill the form in and click the submit button, it comes up with a warning that the form is going to be emailed and this will allow your email addres to be revealed to the recipient, and then it brings up an empty new message window. If I click send here I just get an empty email, but no form.

Anyone got any ideas what i've done wrong or how I can make it work.

<form action="mailto:idb@holtandlongworth.**.uk" method="post" enctype="text/plain">
<table width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr>
<td colspan = 4><h1><center>Business Matters Enquiry Form</center></h1></td></tr>
<tr>
<td colspan = 4><b><font face="times new roman" size="3"><br>Please fill in all relevant details:<p></b></font></td></tr>

<tr>
<td width = 25%><font face="times new roman size="3">Name<p></font></td>
<td width = 25%><input name="" type="text" value=""><p></td>
<td width = 25%><font face="times new roman" size="3"><br>Current Client Number (if Applicable)<font><p></td>
<td width = 25%><input name="" type="text" value=""><p></td></tr>
<tr>
<td><font face="times new roman" size="3">Address</td><p></font>
<td><textarea name="" rows= cols= ></textarea><p></td>
<td><font face="times new roman" size="3">Email Address<p></td></font>
<td><input name="" type="text" value=""><p></td></tr>
<tr>
<td><font face="times new roman" size="3">Telephone Number - Home<p></td></font>
<td><input name="" type="text" value=""><p></td>
<td><font face="times new roman" size="3">Telephone Number - Work<p></td></font>
<td><input name="" type="text" value=""><p></td></tr>
<tr>
<td><font face="times new roman" size="3">Mobile Number<p></td></font>
<td><input name="" type="text" value=""><p></td>
<td><font face="times new roman" size="3">Date of Birth<p> </td></font>
<td><input name="" type="text" value=""><p></td></tr>
<tr>
<td><font face="times new roman" size="3">Please tell us some background information regarding your enquiry<p></td></font>
<td><textarea name="" rows= cols= ></textarea><p></td></tr>
<tr>
<td colspan = 3><b><font face="times new roman" size="3"><br>Thank you for your enquiry. We will get back to you as soon as possible.<p></b></font></td>
<td><input type="submit"></td>
</tr>

marksmind
06-30-2004, 08:49 AM
I've written the following code but when I try and fill the form in and click the submit button, it comes up with a warning that the form is going to be emailed and this will allow your email addres to be revealed to the recipient, and then it brings up an empty new message window. If I click send here I just get an empty email, but no form.

<input name="" type="need to fill this in" size="also need to add a size" value="">
now it should work.

enctype="text/plain" is a nice little add-on for formatting the output that I didn't know about.

Mark

three
07-29-2004, 08:29 AM
If you use a form action of mailto you will get that warning. You will need to make use of your server's cgi bin to stop the warnings.