The FeedBack Form
GeoCities has a CGI Script for EMailing the contents of a
form, to your GeoCities registered EMail address (not your
GeoCities email). In this section I describe how to change the
FrontPage FeedBack Form properties, from being submitted to the
FrontPage Extensions, to being submitted to the GeoCities EMail
CGI Script. You are not limited to the the FrontPage FeedBack
form, you can create your own forms, and set the Form Properties
as described here, and the form data will be EMailed to your
registered GeoCities Email address.
- Note: You can make a form an EMail form,
that submits directly to your EMail. But that requires
that the user has EMail configured in their browser. The
GeoCities EMail CGI Script works, even when the user
doesn't have email.
- Open the FrontPage Editor.
- Select the File menu, New menu sub-item. The New Page,
Template/Wizard dialog opens.
- Scroll down, and select the FeedBack Form, then press OK.
- On one of the Text Entry fields for the form, click your
right mouse button. A pop-up menu, will appear, select
the Form Properties menu item, and the Form Properties
dialog will open.
- Change the Form Handler selection drop down list to:
Custom ISAPI, NSAPI, CGI script..
- Push the Settings button, and the Settings for Custom
Form Handler dialog will appear. Fill in Action and
method as follows, but for the action change where I have
YourGeoUserId, to your GeoCities User Id.
Action: /cgi-bin/homestead/mail.pl?YourGeoUserId
Method: POST
Encoding Type:
(Note: Encoding Type must be blank, delete anything
filled in this field)
Press OK.
- Back in the Form Properties dialog, set the Form Name to
FeedBack.
- In the Hidden Field section, push the Add button. The
Name Value Pair dialog will pop-up. Fill in Name and
Value as follows, but use the fully qualified name of
your form file instead of mine.
Name: next-url
Value: http://www.oocities.org/SouthBeach/Sands/1492/frfeedbk.htm
This is the name of the html file to be loaded, after the
form is sent to your EMail. You can change it to whatever
page you wish. Push OK on the Name Value Pair dialog.
- In the Hidden Field section, Add another field as
follows:
Name: subject
Value: Home Page Feedback
You can put whatever you want as the value, depending on
your EMail, this will be the Subject Line of the EMail
that is sent to you with the form.
- Press OK on the Form Properties dialog.
- You are Finished, unless you want to customize the form.
The 2 push buttons at the bottom of the form are
Required, you can only change the text (Submit Comments,
Clear Form) for the buttons. The rest of the fields are
Optional. You can Add or Remove fields, you can change
the wording of any text, just make sure that each field
has a Name (in the form field properties dialog).
For an example of a modified form, visit my sister's site
at: http://www.oocities.org/SouthBeach/Lights/8592/yellow.htm
Field Names
There are some special field names that you can use with the
GeoCities Form CGI-Script:
next-url |
|
This is the URL (eg. http://www.oocities.org/SouthBeach/Sands/1492/frmain.htm)
of the page to be loaded after the form is submitted. |
|
|
|
subject |
|
This will be the Subject of the email,
when the form data is mailed. |
|
|
|
from-name |
|
This will be the Sender of the email,
when the form data is mailed. |
|
|
|
from-email |
|
This will be the Reply-To Email address,
when the form data is mailed. |
|
|
|
You can use these Field Names on hidden fields, or on controls
in your form. Whether they work or not depends on your receiving
EMail program, they do work with HotMail.com, which I use. If you
want to see an example, I use them on my Contact Form.
Field Validation
If you click your right mouse button on a field in a form,
then on the pop-up menu select the Form Field Validation option.
A dialog opens where you can make the field required, or enter
other options for checking the contents of the field.
The code (JavaScript) generated for the field validation Works
At GeoCities. So you can take advantage of this FrontPage
Feature. The only exceptions are the 2 specially named fields
'from-email' and 'from-name' (see above). If you use these field
names, do not put any validation on them, you can still validate
the other fields on your form (including the email field, if you
name it something other than 'from-email').
Thanks to Magic:
The Gathering File Depot, for telling me about this feature.
Feedback Form
Tell us what you think about our web site, our products, our
organization, or anything else that comes to mind. We welcome all
of your comments and suggestions.
Author information goes here.
Copyright © 1995 [OrganizationName]. All rights reserved.
Revised: March 29, 1998.
[Home] [ScrapBook] [Chat] [Links] [Contact] [FrontPage]
This page hosted by
Get
your own Free Home Page
JES - 03/29/98