16 Input Boxes

Back to Web Design

Assignment #24 

Selection List                         

<SELECT NAME=Text>

   <OPTION>Option 1

   <OPTION>Option 2

  

</SELECT>

NAME property is the field name of the selection list

OPTION for each entry in the list

To let users choose more than one option. 

<SELECT MULTIPLE>  

Modifying the Appearance of a Selection List 

<SELECT SIZE=value>

value is the number of items that the selection list will display in the form 

Radio Buttons 

<INPUT TYPE=RADIO NAME=text VALUE=value>

NAME is the name of the field

VALUE is what is sent to the CGI script 

To make a particular radio button the default option,
use the following tag:

<SELECT TYPE=RADIO CHECKED> 

Check Boxes 

<SELECT TYPE=CHECKBOX NAME=text VALUE=value>

NAME is the name of the field

VALUE is what is sent to the CGI script 

To make a check box selected by default: 

<SELECT TYPE=CHECKBOX CHECKED> 

Text Area 

<TEXTAREA NAME=text ROWS=value COLS=value WRAP=Option >Default Text</TEXTAREA>

ROWS is the number of rows displayed

COLS is the number of columns displayed

WRAP is one of the following: 

Value

Description

OFF

All the text is displayed on a single line, scrolling to the left if the text extends past the width of the box. Text goes to the next row in the boxy only if the Enter key is pressed. The text is sent to the CGI script in a single line.

SOFT

Text wraps automatically to the next row when it extends beyond the width of the text box. The text is still sent to the CGI script in a single line without any information about how the text was wrapped.

HARD

Text wraps automatically to the next row when it extends beyond the width of the text box. When the text is sent to the CGI script, the line wrapping information is included, allowing the CGI script to work with the text exactly as it appears in the text box.