Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Form To Email

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

Full Member

10+ Year Member

joined:Nov 4, 2005
votes: 0

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 ">
<td valign="top" width="183">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td height="23"><input name="text" type="text" value="your name"></td>
<td height="23"><input name="text2" type="text" value="e-mail"></td>
<td height="23"><input name="text2" type="text" value="phone"></td>
<td height="23"><input name="text2" type="text" value="fax"></td>
<td height="23"><input name="text2" type="text" value="address"></td>
<td valign="top"><textarea name="textarea" cols="10" rows="20">comments</textarea></td>
<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>

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

Senior Member from CA 

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

joined:Aug 31, 2003
votes: 6

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

You can attempt to use a

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):


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

Senior Member

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

joined:Mar 2, 2003
votes: 0

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