HTML
  Home arrow HTML arrow HTML Forms
Iron Speed
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

HTML Forms
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-02-06

    Table of Contents:
  • HTML Forms
  • Other Input Types
  • Checkboxes
  • Buttons
  • Sending Data with a Form
  • Sending E-Mail Via Forms

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    HTML Forms
    (Page 1 of 6 )

    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.

    Forms

    Back in the olden days, we used to have to walk to the DMV and wait in line for nine hours, come back the following day because the DMV is only open eight hours, wait in line another four hours, get a form and a whole bunch of underpaid government attitude, fill out the stacks of paper by hand, wait in line some more, only to find that the stupid clerk gave you the wrong paperwork. Oh and by the way, before she can give you the right form, you have to go wait at the back of the line.

    Fortunately for you youngsters, you can conduct most of your business online, thanks to our friend, the form. A form consists of an area upon which you place form elements. Form elements are used to collect information from the user and consist of text fields, drop-down menus, radio buttons, checkboxes, textarea fields, submit buttons, and so forth.

    To create a form you use the <form> tag. Below we will create a form with some text boxes:


    <html>

    <body>


    <form>

    First name:

    <input type="text" name="firstname">

    <br>

    Last name:

    <input type="text" name="lastname">

    <br>

    Occupation:

    <input type="text" name="occupation"

    </form>

    </body>

    </html>

    The result of this code is:


    First name:
    Last name:
    Occupation:

    You will notice in the code that we use the <input> tag for input fields and that we define the type of input field using the <type> attribute.

    More HTML Articles
    More By James Payne


       · Thanks for dropping by for my article on HTML Forms. In this one we talk about how...
     

    HTML ARTICLES

    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips
    - Color Composition and HTML
    - HTML Fonts, Styles, and Headers
    - Uses of the New Window Command for Web Sites
    - HTML Working with Images
    - HTML: Working with Special Characters
    - HTML Forms
    - HTML Tables






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway