Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions Tools to help you create your site Free and shareware fonts to download Photographs to use in your projects Shop for your site needs Free Online classes REcommend this site to others Log in or edit your information when logged in Developingwebs Log Out Change My Account details and preferences
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

 

<INPUT> INPUT (VARIABLES)

Description:

This tag (used inside a form) allows you to specify text input fields, radio buttons, check boxes, and selection lists.

Attributes:

name - specifies the field or variable name; must be included.

value - specifies the default value for the variable when sent to the CGI program. This text appears within the field and can be deleted and/or replaced by the user.

type - this is where you specify what type input you are looking for, either text, radio, checkboxes, or selection menus. Be sure to see the coding examples for how to use these options. This can also be specified as "hidden" to send information that you do not want the user seeing.

size - when using a text input field, this tells how long it is (width in character's).

maxlength - when using a text input field, specifies how many characters the user is limited to for their input.

checked - when using a radio field, determines which button is selected by default (be sure to only select one!)

Example code:

<FORM ACTION="action URL" METHOD=GET/POST>
What is your name?
<BR>
<INPUT NAME="name" VALUE="enter name here" TYPE="text" SIZE=30 MAXLENGTH=3>
<P>
What is your age?
<BR>
<INPUT NAME="Age" VALUE="Young" TYPE="radio">
Young
<BR>
<INPUT NAME="Age" VALUE="Old" TYPE="radio" CHECKED>
Old
<P>
<INPUT VALUE="Submit Your Entry" TYPE="submit">
<INPUT VALUE="Clear This Form" TYPE="reset">
</FORM>

Result:

What is your name?

What is your age?:
Young
Old



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2010 All Rights Reserved
Privacy and Legal