Home arrow HTML arrow Page 6 - HTML Forms
HTML

HTML Forms


In our previous article, we discussed how to create tables in HTML and how to add data to them. In this episode we will go over forms and how to collect data from users. We will learn to create text fields, radio buttons, check-boxes, buttons, drop-down menus, and much much more. There is a lot of ground to cover in this one, so let's go ahead and get started.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 4
February 06, 2008
TABLE OF CONTENTS:
  1. · HTML Forms
  2. · Other Input Types
  3. · Checkboxes
  4. · Buttons
  5. · Sending Data with a Form
  6. · Sending E-Mail Via Forms

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

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

blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials