HTML Forms - Sending E-Mail Via Forms
(Page 6 of 6 )
You can also use HTML to create a form for users to email you. This helps cut down on spam by spiders that gather up text email links on pages. Here is the code:
<html>
<body>
<form action="MAILTO:james@developershed.com" method="post" enctype="text/plain">
<h2>Send your favorite writer an e-mail!</h2>
Name:
<input type="text" name="username"
value="Joe Schmoe" size="20">
<br>
E-Mail:<br>
<input type="text" name="email"
value="<enter your email here>" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="James, you are the best writer ever. I love you and will name all my children after you" size="100">
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
Well that's it for this tutorial. Be sure to drop by for our next issue where we will discuss working with images and how to lay out your web pages.
Till then...
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |