|
CYOU Internet's Guestbook Documentation
Information & How it works
The Guestbook is the MOST configurable
& customizable guestbook i have ever come across. You set
the fields, the colors & text. Basically, you create the
page, the script maintains it.
when creating your form, you supply hidded
input fields, which configure the way the script runs.
the script will display a specified web page first, then
append it's needed text to the end, and optionally, append a
footer web page at the bottom.
The hidden fields are:
| name |
value |
top
bot
book
view
confirm
link
elink
autowrap
date
time
label |
"header web page"
"footer web page"
directory of guestbook (posting to guestbook)
direcory of guestbook datafile (viewing gb)
optional header for confirmation page
name of field to make a hyperlink to entered text
name of e-mail field, to create a email hyperlink
name of field to allow wrapping. this should be
your last field
(none needed. place this where you wish for the
date to appear)
(non needed, place this where you wish for the
time to appear)
"yes" or "no" whether or not
to display the "names" of each field |
Creating your Guestbook
- create an EMPTY file
(or just a blank line). this will be the database
file, the guestbook script will NOT create your
datafile, you must provide a blank file in your
directory. save it as "gbook.dat" and
upload it to the web server. (via FTP)
- Create the desired
form. you can have whatever fields you wish (ie Name,
Email, etc). but the folllowing is a minimum
<form
action="/scripts/gbook.pl" method=POST>
<input type="Hidden" name="book"
value="~YOURDIRECTORY">
<!-- Insert Desired fields here, they will appear in the
guestbook in the order you list them here --->
</form>
- you can use GET or
POST, the script will work with either
Viewing your Guestbook
- create how you would
like your guestbook to look. You can have the data
either append at the end of you page, or inserted
into the middle. to insert into the middle, you must
seperate the page into a header & footer page.
(eg header.htm & footer.htm).
- Create a link to view
your guestbook, using the following sytax:
<a
href="http://www.cyou.com/scripts/gbook.pl?view=~YOURDIRECTORY&top=header.htm&bot=footer.htm">
{ or if you don't have a footer, exclude
the "&boot=footer.htm" }
Look at a sample Guestbook
Click
here to view the sample guestbook.
the sample guestbook uses autowrap, http link & email
linking, date, time, and a confirmation page.
|