Adding radio buttons and checkboxes isn't really all that hard, but it does start to get us a bit beyond a "super simple" form. So we'll look at one more neat trick that you should have on even a very simple form, then start in the the other stuff.
You've seen it, you've had it work for you when you filled in someone else's form, and now you want it on your page, too.
"MacBoy, how do I get someone who's filled in the form to go to my special "Thank You" page automatically? That boring grey automatic page is DULL, DULL, DULL! And I don't know if they'll come back!"
It's the NEXT-URL Tag! Again, it's hardly complicated. However, it's picky about the URL you include. This is the tag:
<input type="hidden" name="next-url" value="http://www.oocities.org/SiliconValley/Vista/4555/sent.html">
Placed above or below the "submit" buttons, this tag will send the form-filler-upper to a page called "sent.html" where they'll be greeted with the usual "Thanks for filling in the form, it's on it's way now" type of stuff. You'll need to design your own "Thank You" page, of course. This might also be a link back to your main page or the next page, and a note saying they can always use their browser's back button to fill the form out again. This way, they wont feel they've "left your site" and go on somewhere else. You could just as easily send them off to Disney.com if you wanted, or directly to the next page in your site. Your choice.
Just be certain the COMPLETE URL (that means the http://www..... part and so on) is included, or else the entire form WILL NOT WORK!!
DO NOT use just the file name that's in your directory (ie: value="sent.html") like you would in a normal link, because the server is in the CGI bin (that's where it's grabbing the "how to handle forms" instructions) which is somewhere else, so it needs the complete address.
Say you want the reader to tell you what, from a list you show them, they like or use. Easy ways are by using Checkboxes and Radio Buttons. (Pull Down Lists and Scroll List will be covered on the next page.)
Each of these has a different use, not just a different look. Let's look at them.
You use this when you want to let the reader choose a "yes" (cliked) or "no" (not clicked) sort of response to the question.
So, let's take, for example, ICE CREAM! We're offering 5 different flavours today. Check boxes would be useful for the following:
LinkExchange Member | Free Home Pages at GeoCities |