GeoCities Mail Script Form Example #1 - Sample Survey


Here is a sample survey that you may freely use on your GeoCities home page. This is intended to show you one example of how you can develop a form to include on your home page. To change the questions or answers, simply change the text associated with the question. If you have general questions about forms, please visit the NCSA site for a detailed tutorial. 
These are the items that can be changed to customize your survey:
  1. The questions and answers.
  2. The type of input received (radio buttons, checkboxes, textareas, ...)
  3. The "subject" of the form passed as a "hidden" value (see the source code for further explanation).
  4. The page displayed to the user after the "submit" button is pressed. (Again, see the source code.)

NOTE:
To copy the source code for this page to your hard drive, choose "save" or "save as" from the "File" menu, and choose a location and name for the file. You can then use any editor (such as Notepad or Microsoft Word) to view the contents, and then simply "copy" and "paste" the appropriate portions of the file into your HTML document. Make the appropriate changes to the questions and your form is all set to go.

 


Please fill out my Survey

Please tell me your name: (Do not hit return)
1) How old are you?

 

Under 18 years old
Between 19 and 24 years old
Between 25 and 34 years old
Between 35 and 44 years old
More than 45 years old
2) How often do you visit my page?

 

Every Day
Once per week
Once per month
Once per year
NOTE: Hitting "Submit" will take you to a screen called "next_page.html". When you set up your own form, you can call it whatever you'd like to, and include any message that you want. This will also generate an E-mail to the creator of this page whose member name is in the "action" portion of the form.

 


This basic example of a form will send the member an E-mail with the following format:
Subject: Survey Results

Sent from Mail Form posted at:   
http://www.oocities.org/homestead/sampleform1.html

(NAME)  GeoCities User
(age)  35-44
(visit)  monthly
(subject)  Survey Results
(next-url)  /homestead/next_page.html
where the values change according to what the users choose as their answers.

Back to Form Info Page


[Main] [Neighborhoods] [Featured Content] [Members] [MarketPlace] [Search] [Join] [Help]
© 1995, 1996, 1997 GeoCities. All rights reserved