Last updated: February 13, 1998
Table of Contents
The guest book feature allows you to collect information from people browsing your web pages and save it in a file. You define what information to collect by creating a HTML form and you define the format of the saved information by creating a template. A member retrieves your form, fills it out and presses the submit button. A members.aol.com server uses the template and forms data to format and save the information. The member sees an HTML page that reads Thank You!. (See the ResponsePage option in the Details & Suggestions section below to find out how to add a customized thank you page.)
Create a form with the action set as follows.
<form action="/cgi-bin/guestbook/screenname/myguests.html"
method="POST">
Replace screenname with your AOL screen name and myguests.html with a name of your choice. Note that myguests.html is the data file that will contain the information submitted by your users.
Create a template file and put that file in your web directory on members.aol.com. A template is a simple text message with markers (e.g., #fieldname#) that get filled in with the appropriate form data. The name and directory of the template file must match the data file but the filename extension should be replaced with .gbt.
Here's a sample template file:
I'm interested in information about #topic#.
My name is #name# and I can be reached at #email#.
Thanks!
In step 1 above, you identified the file that will capture the information submitted by your users. Each user's submission will be added to the file using the format specified by the template you created in step 2. If you are setting up a guest book that others will read, you may wish to provide an appealing introduction. To do so, upload the data file with the desired introduction before deploying the form and template.
<INPUT TYPE="hidden" NAME="required" VALUE="topic,email">
<INPUT TYPE="hidden" NAME="ResponsePage"
VALUE="http://members.aol.com/screenname/thanks.htm">
<INPUT TYPE="hidden" NAME="notify" VALUE="yes">
<INPUT TYPE="hidden" NAME="AllowHTML" VALUE="yes">
Creating a guestbook is an intermediate HTML task intended for members with experience with an HTML editor such as AOLpress. Future versions of Personal Publisher may provide a streamlined method of creating a guestbook.
Check out a nice tutorial written by one of our members. Also, try posting details of your problem to a On The Net message board. See the WWWAdmin Home Page for other sources of AOL help.
The contents of the template is dependent on what you intend to do with the data file that will be generated. If you plan to read it with a web browser, you probably will want to include some HTML in the template. If you plan to load it into a database or spreadsheet, you may wish to use a different format that does not include HTML.
No. The ENCTYPE="text/plain" attribute can be used with a mailto URL to make the form data more easily readable by humans. This attribute should not be used with cgi-bin/guestbook since the data will be processed by a computer. With cgi-bin/guestbook, your template is used to convert the data into a readable form for you.
If you want to just verify specific fields do not have empty values, use the required hidden field described above. If you need more sophisticated verification, give JavaScript a try. See Verifying Form Input with Java Script or JavaScript Code Samples for more information. Note that JavaScript is supported in most but not all web browsers.
There are 2 different ways that this can be addressed by changing the form.
<HEAD> <TITLE>Ralph's Home Page</TITLE> <BASE TARGET="_top"> </HEAD>