<class home>  <forms>   <back   next>

Text Boxes

A text field is used to collect information that a user submits by typing text into it.


ex.

single line:    

multiline:   

password:


To make a text field: Dreamweaver

1. Put your cursor where you want it in the document window.

2. Select Insert>form object>textfield from the main menu.
Or click on the form button in the object panel: form section:

3. In the Properties panel:
-give it a name
-choose character width or maximum character (the number of characters) if necessary.
-select if it is single line, multiline, or a password (*****) field.
-select wrap options if it is multiliine

-enter in an initial value if you want it to start with a visible value

note* if you choose to make a multiline text field max characters will be changed to num lines (or number of lines)


In HTML

Typing it in.

ex.

multiline:
single line:
password:

To get the above put this into the <body> section of your html:

<form method="post" action="http://www.cookwood.com/cgi-bin/display_results.pl">

multiline:
<textarea name="wrap">
I like glue.</textarea>
<br />

single line:
<input type="text" name="food" value="bananans and oranges" size="30" maxlength="10" />


password:
<input type="password" name="password" size="20" maxlength="6" />


</form>