Attribute VB_Name = "GuestBook" Option Explicit DefInt A-Z ' GuestBook 1.0 ' Copyright (c) 1995 Greyware Automation Products ' You may use or modify this code to create your own guest book ' ' Parms: ' bookfile=file (required) ' relative path to guestbook datafile; extension must be .book ' ' op=operation (required) ' show displays the guestbook ' add adds record to guestbook ' sign displays form for signing the guestbook ' ' bookname=name (optional) ' if provided, displays give guestbook a display name ' ' ' startwith=## (optional; used with op=show) ' if provided, first record number displayed ' ' howmany=## (optional; used with op=show) ' if provided, number of records to display per page ' ' background=file (optional) ' relative path to
file ' Examples: ' ' 1. Display the guest book, starting with most recent record: ' View the GuestBook ' ' 2. Display form for signing guestbook: ' Sign the GuestBook ' ' 3. Display 10 records from guestbook, starting with record 17 ' View 10 Records from the GuestBook ' ' 4. Use /graphics/mybackground.jpg as the guestbook background ' (Len(Fixed) - 300) Then Comments = Left(Comments, Len(Fixed) - 300) End If ' Cat up basic user information UserInfo = Caller + " called from " + cgiGetEnv("remote_addr") + " with " + cgiGetEnv("http_user_agent") UserInfo = UserInfo + "" + CRLF If Len(Email) Then tmp = tmp + "