• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Forms >  Creating Text Boxes

Creating Text Boxes

Text boxes can contain one line of free-form text—that is, anything that the visitor wants to type—and are typically used for names, addresses, and the like.

To create a text box:

1.
If desired, type the label that will identify the text box to your visitor (for example, Name:).

2.
Type < INPUT TYPE="text".

3.
TypeNAME="name", where name is the text that will identify the input data to the server (and your script).

4.
If desired, typeVALUE="value", where value is the data that will initially be shown in the field and that will be sent to the server if the visitor doesn't type something else.

5.
If desired, define the size of the box on your form by typingSIZE=n, replacing n with the desired width of the box, measured in characters.

6.
If desired, typeMAXLENGTH=n, where n is the maximum number of characters that can be entered in the box.

7.
Finish the text box by typing a final >.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint