![]() |
![]()
Option Lists Option lists allow the user to choose from a selection of values. You define the values of choice in the SELECT statement of the form. Option lists can be drop down list boxes, like this:
<SELECT NAME=platforms> <OPTION>Windows <OPTION>Macintosh <OPTION>UNIX </SELECT> Simple listboxes, like this: <SELECT NAME=platforms SIZE=3> <OPTION>Windows <OPTION>Macintosh <OPTION>UNIX </SELECT> Or scrolling listboxes, like this: <SELECT NAME=platforms SIZE=3> <OPTION>Windows <OPTION>Macintosh <OPTION SELECTED>UNIX <OPTION>Amiga <OPTION>Next <OPTION>AppleII </SELECT> Using the SELECTED keyword
after OPTION (as for the UNIX option in the above
example) causes that option to be highlighted. By default, only one of a list of
options is selectable, however this can be overridden by including the MULTI keyword
in the SELECT tag. Images as Submit Buttons This form uses an image
in place of the "submit" tag, providing equivalent functionality. Note
that all the common attributes modifying the way the image is displayed are supported,
such as ALIGN, WIDTH, HEIGHT, and BORDER. The forms processor also returns the x and
y coordinates of where on the button you clicked.
<INPUT TYPE=image WIDTH=88 HEIGHT=31 BORDER=0 SRC="submit.jpg">
We hope you have found these
HTML forms tips helpful, and useful. If you have any questions or suggestions for us,
please use the comments page, or the email button to let
us know. Thanks for choosing the Internet Brothers as your source for HTML
assistance, please come back soon. |
||
The Internet Brothers have implemented
hierarchical menus for navigation. Easier done than said.
The hierarchical
menus were created using Peter Belesis' © Dynomat DHTML
scripting tool
from Webreference. Give them a visit, you'll like
what you learn. More people would learn from their
mistakes if they weren't so busy denying them. It takes courage to stand up and
speak. It takes even more courage sometimes to sit down and listen. The trouble with most of us is that
we would rather be ruined by praise than saved by criticism. |
Copyright © 1997-present Internet Brothers. All Rights Reserved. Really.