<## Script Info ######################################################### ### ### Guestbook - This guestbook was written in HTMLScript for the ### use of SimpleNet customers. It is freeware, but any modifications ### to this code have no guarantees. If you wish to get help with any ### HTMLScript applications, then visit their site at ### http://www.htmlscript.com. ### Release 1.0 August 1997 ### Release 1.1 April 1998 fixes macro bugs to prevent user input from ### being executed ### Tim Traver <## INSTRUCTIONS ######################################################## ### ### Change the setup variables for this application in the SETUP ### VARIABLES area just after the instructions. ### ### The large section of this code is where the subroutines for ### this program are, and you should not touch any of it unless you ### wish to customize the engine further, and take matters into your ### own hands. ### ### Each section of this guestbook is separated by the # characters, and ### given a brief description of what that section of the code does. ### Ultimately, if you just change the setup variables in the following ### section, then it should work immediately... ### ### ################################################################## ##> <## SETUP VARIABLES ##################################################### ### Change these few variables to setup your guestbook before you change ### the html... ### ################################################################## ##> <## to allow html in the entries or not ##> <## can be "on" or "off" ##> <## SUBROUTINES ######################################################### ### Do NOT change unless you know what you are doing, or feel ### adventurous... ### If you do feel adventurous, then remember, that any quotation marks ### inside these strings since they are macros, need to have a "\" in ### front of them... ### ################################################################## ##> <## This is to determine how this form is being accessed ##> <## This chunk of htmlscript figures out the date and time of the ##> <## entry accounting for the different time zones ##> <## This is set for PST which is -7 off of GMT ##> <## This is if the month is a 31 day month ##> <## This is if the month is a 30 day month ##> <## This is if the month is Feb ##> <## This is if the month is now greater than Dec ##> <## End of date routine ##> <## This short routine is to remove any html from the comments ##> <## section if the user entered any ##> <## Loop to get the total number of entries ##> Now showing entries " $ viewto $ " through " $ viewfrom $ "

    "> <## ######################################################## ##> <## This loop is making a single variable to hold all of the ##> <## entries so we can just use the variable in the final ##> <## page output to represent the entire set of entries ##> <## It is also putting the entries in reverse order. ##> <## Be careful if you change this area. <## ######################################################## ##>
    Date" $ date&[loop] $ " - " $ time&[loop] $ "
    Name" $ name&[loop] $ "
    E-mail" $ email&[loop] $ "
    Message" $ comments&[loop] $ "
    ">
    "> "> <## MAIN OUTPUT ######################################################### ### This is where you should customize script for your html style ### You can change anything after the tag except the macro ### commands ( &[macro] ) and the beginning and final statements ### ################################################################## ##> <## GUESTBOOK SUBMISSION ################################################ ### The HTML in this section is What you see after the user has made an ### entry into your guestbook... ### Only change the html between the and tags... ### It does some error checking, and then will send it back to ### the same screen if it finds errors. ### ################################################################## ##> <## Checking for mandatory fields ##> "> "> The Conestoga High School Alumni Guestbook

    Errors have been found in your guestbook entry!

    Please go back and enter again...




    <## record the data, and print out the response ##> <## Now we should write the entry to the database file ##> The Conestoga High School Alumni Guestbook


    Thank You for Signing the Conestoga High School Alumni Guestbook!

    Come back and visit again soon.

    Take a peek at the other entries


    <## GUESTBOOK MAILING ################################################### ### This section is for when you wish to receive the guestbook entry as ### a mail message...(Set the mail variables in the first section) ### ################################################################## ##> Received an entry from your guestbook. Date : Time : Name : Email : Comments : <## GUESTBOOK ENTRY ###################################################### ### The HTML in this section is for when the user wishes to make an ### entry into your guestbook... ### ################################################################## ##> Jason Patton and Genealogy
    Errors have been found in your guestbook entry!

    Jason Patton and Genealogy

    I have only begun to use the various genealogy resources available on the Web. Hopefully in the near future I will be able to update this page even more using the internet combined with my manual research.

    If you are interested in my family tree, follow the link below. Starting with yours truly, I will list each person along with their birth information and death information (when applicable). This will be followed by information on the person's immediate family and then a short biography.

    Jason Patton's Family Tree

    Jason Patton's Genealogy Documents

    Back to Jason Patton's Home Page

    <## GUESTBOOK VIEWING ################################################### ### The HTML in this section is for when the user wishes to view ### entries in your guestbook... ### Only change the html between the and tags..., but you ### need to leave the entries macro to show the entries... ### ################################################################## ##> The Conestoga High School Alumni Guestbook
    Welcome to the Conestoga High School Alumni Guestbook

    Check this site out for more on Conestoga High School.

    Show most recent &[numberofentries] Entries

    Post a Guestbook Message

    <## END OF SCRIPT ################################################ ##>