Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: incrediBILL

Form To Email

   
1:09 am on May 16, 2006 (gmt 0)

5+ Year Member



can anybody help me with a form from my website to email script.I want the form to go straight to a email account.Its very much appreciated
this is what i have so far

<form action="emailit.html" method="get" id="form" style="size:auto; margin:0px; padding:0px;">
<table width="365" border="0" cellspacing="0" cellpadding="0" style="margin:9 0 0 18px ">
<tr>
<td valign="top" width="183">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="23"><input name="text" type="text" value="your name"></td>
</tr>
<tr>
<td height="23"><input name="text2" type="text" value="e-mail"></td>
</tr>
<tr>
<td height="23"><input name="text2" type="text" value="phone"></td>
</tr>
<tr>
<td height="23"><input name="text2" type="text" value="fax"></td>
</tr>
<tr>
<td height="23"><input name="text2" type="text" value="address"></td>
</tr>
</table></td>
<td valign="top"><textarea name="textarea" cols="10" rows="20">comments</textarea></td>
</tr>
</table>
<div style="margin:15 0 0 268px "><a href="#" onclick="document.getElementById('form').reset()"><img src="a6.jpg" alt="" border="0px" style="margin:0 10 0 0px"></a><a href="emailit.html" onclick="document.getElementById('form').submit()"><img src="a1.jpg" alt="" border="0px"></a></div>
</form>

10:02 am on May 17, 2006 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



What does the "emailit.html" page do? Is it a script or a plain HTML page?

You can attempt to use a

mailto:
as the form action, but this won't work for many users and it is a magnet for spam to the listed email address. You need a server-side script for best results - if you don't have one, then you could try the NMS FormMail script (written in Perl, which is available on most servers):

[nms-cgi.sourceforge.net...]

10:46 am on May 17, 2006 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



With the exception of radio boxes, I believe all items on a form should have a unique name.

Kaled.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month