Forms... Forms allow you to add interactivity to your web documents by way of the
tag. With the form tag you can add to your web pages a guestbook, order forms, surveys, get feedback or whatever. The basic construction of a html form is this... begin a form ask for information in one of several different ways... ...there can be as many input areas as you wish
end a form The tag provides the user with various ways of inputting information. There are several different tags. Form Input... Text The most common TYPE of form is TEXT. Every input needs a NAME. When the user types in his address (for example 1313 Mockingbird Lane), it will become the input's value and be paired with ADDRESS so the end result after running it through Mailto Formatter will be ADDRESS=1313 Mockingbird Lane. We can if we want, type in a VALUE. This will automatically pair the value 44 Cherry St with the name ADDRESS, unless the user changes it. Note- be sure to use quotes where I've specified. We can specify the size of the text input box. The default value is 20. If we want, we can specify how many characters a user can input. Go ahead and try to input more than 10 characters in the text box below: Very similar to the TYPE=TEXT is the TYPE=PASSWORD. It is exactly the same, except it dispays *** instead of the actual input. The browser will send you the input, it just won't display it. Remember that each must have a NAME. SIZE, VALUE, and MAXLENGTH modifiers/attributes work here also. By the way, a tells the browser to do something. Radio Buttons and Check Boxes Radio buttons allow the user to choose one of several options. Check Boxes allow the user to choose one or more or all of the options. First let's build some Radio Buttons. Now add 2 more. Hmmm... I suppose we should put a line break after each one.

Note that each input has the same name. The reason will become apparent very shortly. Each of the Radio Buttons must be assigned a VALUE.

Now label each button. Powerbuilder Developer
Database Administrator
None of the above

Powerbuilder Developer Database Administrator None of the above You can also modify these labels with other html tags if you wish. Essentially your Radio Buttons are done. You can tidy things up by adding a statement above the buttons, and if you want, choose a default selection (optional). What is your position within the company?
Powerbuilder Developer
Database Administrator
None of the above

What is your position within the company? Powerbuilder Developer Database Administrator None of the above The user of course can only choose 1 option. Their choice will be returned to you as the name/value pair POSITION=PB (or whichever they pick). Building Check Boxes is pretty much the same thing. Start with this. Add 3 more, but this time give each one a different NAME. (Also add in line breaks if you want)


Each Check Box gets the same VALUE.


Note- For Check Boxes the NAME changes and the VALUE stays the same and with Radio Buttons, the VALUE changes but the NAME stays the same. Don't feel bad, my simple mind still gets confused. OK, let's label each box. Powerbuilder Developer
Database Administrator
None of the above
Powerbuilder Developer Database Administrator None of the above And lastly, you may want to add a little something above your check boxes and maybe pick a couple defaults. What positions do you occupy within the company?
Powerbuilder Developer
Database Administrator
None of the above
What positions do you occupy within the company? Powerbuilder Developer Database Administrator None of the above The user can choose 1, 2, none or all of the options. Their choices will be returned to you as the name/value pairs... PB=YES DBA=YES (or what ever they choose... if they choose nothing, nothing will be returned to you) Your own HTML page... We will now construct the feedback page we created in Chapter 11. Open the blank page "feedback.htm" in Notepad, and add the following (the blue text is what to add).

Feedback Form


My name is:

I work as a:
Developer
Project Manager
Technical Manager
None of the above

When it comes to web browsers:
I use Netscape Navigator
  version 2.0
  version 3.0
I use Microsoft Internet Explorer
  version 2.0
  version 3.0

Save the file.