Advanced pages

What we'll discuss:

 Forms in Geocities (below)

 Adding sound (page two, coming soon)

 Using tables (page two, coming soon)

Forms are a great asset to your page... they allow users to interact more with your site without having to use their own email. Some use forms to conduct a survey, or elicit information about their users. I use them to get email for updates, and questions/concerns from anyone using my HTML helpers.

To write a form, start with this tag:

<FORM ACTION="/cgi-bin/homestead/mail.pl?username" METHOD="POST">

Change username to whatever your username is. Anything sent in through this form will go to the email you used to get your page (the one your password went to).

Now lets add some fields.

A text box. Useful for submitting names, age, address, or email. Any one word responses. <input type = "text">

A text box. Better for longer responses. <textarea cols = "a number" rows = "a number"></textarea>

Checkboxes. Out of these, you can make a list in which the user can choose multiple options. <input type = "checkbox">

Radio buttons. Like the boxes above, except the user can only choose one option. <input type = "radio">

Dropdown box. The user can choose one of many options. Saves space instead of using radio buttons.

<select><option>Option one <option>Option two <option>Option three</select>

Sends everything that's been checked or filled in above to your email. Necessary in order to get results.

Resets everything in your form. A courtesy for those who really screw up.

For each and every field / check box/ whatever (except reset and submit) up you have on your form, you need to have a "name" attribute. If you don't put a name attribute, it won't be sent to you.

Names should make sense, and pertain to what you're asking. For instance, if you're asking for the person's name, call it "name." You add a name tag like this: <input = "text" name = "name">. That way you don't get a heap of mumbo jumbo.

Now go see a sample survey I created that utilizes all the form elements above.

Questions/comments:
Email:

This page hosted by Geocities