Guest Book Sample

      

A guest book can be used to get feedback from visitors to your site. Names and comments are stored in a table in the Gallery database to be retrieved at a later time.

Behind the Scenes

This sample uses one file, GuestBk.asp. It creates an HTML form to allow users to type in their name and any comments they would like to make. The information is then stored in a database. The user is also given the opportunity to view other comments entered by previous visitors.

The Recordset design-time control is used to create the connection to the database. If the mode of the form is set for input, then an HTML form is displayed for data entry. If the mode of the form is output, then the Grid design-time control is used to display the contents of the guest book table.