homepage Welcome to WebmasterWorld Guest from 107.21.187.131
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Creating a contact form using just html
submitting info as a mailto: xyz@xyzhost.com
unbeatabletechnology




msg:613865
 2:09 am on Jan 10, 2005 (gmt 0)

I am trying to find out how to create a contact form using just html and being able to submit this info to an e-mail address.

-Mike

 

kodaks




msg:613866
 2:22 am on Jan 10, 2005 (gmt 0)

Here is the basic code that you need:
<form action="mailto:xyz@xyzhost.com" method="post" enctype="text/plain">

<table width="80%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="35%">
<div align="right"><b>Name:</b></div>
</td>
<td width="65%">
<input type="text" name="name" size="15">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Email:</b></div>
</td>
<td width="65%">
<input type="text" name="email" size="20">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Comment:</b></div>
</td>
<td width="65%">
<textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea>
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
</table>
</form>

[edited by: tedster at 8:22 pm (utc) on Jan. 10, 2005]
[edit reason] remove extra line breaks [/edit]

Slade




msg:613867
 3:52 am on Jan 10, 2005 (gmt 0)

You should note that this method requires that the user have an email client installed on their workstation, and that it be properly defaulted to accept mailto:// links. (Otherwise, nothing, or worse, some other default email program opens.)

Also, this is an open invitation for spammers to back a truck up to your mailserver and just start pouring their [insert expletive here] in.

BlobFisk




msg:613868
 10:27 am on Jan 10, 2005 (gmt 0)

To expand on what Slade said, the above method does not allow users on public access machines (read: webmail) and webmail users to submit that form to you.

I'd strongly advise using a backend form processor.

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