homepage Welcome to WebmasterWorld Guest from 23.20.220.79
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Form To Email
Jay718




msg:582420
 1:09 am on May 16, 2006 (gmt 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 ">
<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>

 

encyclo




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

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...]

kaled




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

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

Kaled.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved