
Last change: Jun 4/96
George Carmichael, University of Alberta
This program was built because of numerous requests based on the generic CGI submissions policy.
~/public_html/COMMENTS/
mkdir ~/public_html/COMMENTS
/usr/afsws/bin/fs setacl ~/public_html/COMMENTS httpd rwl
Guestbook.html under that subdirectory:
touch ~/public_html/COMMENTS/Guestbook.html
<a href="http://www.ualberta.ca/htbin/Geo-guest?yourid">
Sign my guest book!</a>
You can also make the results of forms go into different guest logs, by specifying special fields in your form. That way, you can have as many different comment files under your id as you have web pages.
The only stipulations are:
~/public_html/COMMENTS/
MANDATORY FIELDS
Make these fields hidden:
USERID
<input type=hidden name="USERID" value="yourid">Field specifies YOUR user id - used to tell the form where to start looking for the Guestbook.
COMMENTFILE
<input type=hidden name="COMMENTFILE" value="MyGuests.html">The name of the Guestbook file to use. You'll reference this file directly as:
http://www.ualberta.ca/~yourid/COMMENTS/MyGuests.html
Highly recommended fields
These puppies will help with navigation and prompts to your visitors:
PARENTURL
<input type=hidden name="PARENTURL" value="http://www.ualberta.ca/~yourid/">This should specify the "main" home directory that you would like guests to see, if they "return" from viewing the guestbook.
PARENTNAME
<input type=hidden name="PARENTNAME" value="Bob's Country Bunker">Any arbitrary name to use for prompts to your guest, associated with the PATRENTURL described above.
OPTIONAL fields
These optional fields do (way too) fancy things:
RULER
<input type=hidden name="RULER" value="http://www.ualberta.ca/icons/RulerBrass.gif">...but you can supply any gif you want here to use as a delimiter between guestbook entries. That way, you can make the appearance of this page "match" your home page.
<input type=hidden name="RULER" VALUE="NONE">(Given that you can add any field to the output at any spot you want, you can add standard <HR> commands anywhere by putting something like
<input type=hidden name="myruler" value="%3Chr%3E"> near the bottom of your form)
NOTIFY
<input type=hidden name="NOTIFY" value="yourid@gpu.srv.ualberta.ca">If you give a valid on-campus EMail address, any time someone enters a comment into your guestbook, it will mail you a notification. This allows you to "stop in" once in a while, and make sure that the guestbook doesn't need editing, or trimming.
HIDDEN/CAPITALIZED fields
HIDDEN fields with embedded HTML code
Embedded HTML CODE will work as values to these fields, however, there are MANY browsers that will not interpret these fields correctly during the parsing of a form!!!
So, for example, if you would like to have a horizontal rule show up before the comments the user types in, you would not say
<input type=hidden name="spacer" value='<hr>Comments follow:'>Rather, you WOULD SAY:
<input type=hidden name="spacer" value='%3Chr%3EComments follow:'>
<!-- ###### GEO-GUEST ###### -->Also, you can change anything you like after the following line near the end of the file:
<!-- ## END GEO-GUEST ## -->You may want to add different
<BODY> attributes, etc to make the Guestbook's appearance match the rest of your pages, for example.
<a href="http://www.ualberta.ca/htbin/Geo-guest?yourid"> <img border=0 alt=" " src="http://www.ualberta.ca/icons/Geo-guest.gif"></a>... So it will end up looking like this:
<input type=hidden name="RULER" VALUE="NONE">
I welcome comments, but ironically, NOT via a guestbook. I prefer to screen comments via EMAIL, and then generate FAQs. If you'd like to enter "guestbook"-like comments for me, do so via my Home Page
Visitor no