HomePHP Page 5 - Building A Quick-And-Dirty Guestbook With patGuestbook (part 1)
Playing The Field - PHP
Want to plug into what your site visitors actually think? All you need is a little time, a dollop of imagination and a copy of patGuestbook. More, inside.
Once you've create the guestbook, you need to configure the fields within it via the "Configure Fields" command. By default, all guestbooks can capture the following information from visitors: name, email address, URL, and comments.
A configuration module allows you to control these fields, allowing you to decide, for example, which fields should be displayed to the user, which fields are required and which are optional, and the labels to display next to each field.
For the moment, you can leave the options in their default state, or change them if you like. When you're done, use the "Save Changes" command to save your changes.
patGuestbook also offers you the ability to allow visitors to answer one or more multiple choice questions, a feature it calls "ratings". Use the "Configure Ratings" command to view the ratings that are currently configured. Since this is a new guestbook, there are none at the moment; however, you can use the "Add a new rating possibility" command to add the question and possible answers to the system.
In case you haven't figured it out yet, the rating label is the question that should be displayed to the user, with the list of available options specified, one on each line, in the large text box following it. You can also specify whether answering the question is mandatory or optional. When you're done, use the "Save Changes" command to save your changes.