- At the bottom of this page, you'll find some HTML code. Copy that code into a textfile. Name the textfile "
guestbook.html".
- Edit the HTML file to customize it. You will need to:
- Change the title.
- Change the line that reads
<H1>My Guestbook Page</H1>, if you want.
- Change the line that begins:
<FORM METHOD="POST".
- Replace the words
THE PATH TO THIS FILE with the path to your guestbook.html file. For example,
if your guestbook is in a directory in your webspace called 'guestbook,' the path would be: guestbook/guestbook.html.
- The resulting line reads:
<FORM METHOD="POST" ACTION="/cgi-bin/guestbook.pl/~your_username/guestbook/guestbook.html">
- Add any additional text you wish to add to the bottom of your page, such as an address listing or a mailto link.
- Then, use your FTP client and change your guestbook's permissions to world-writeable. If you don't do this, the
guestbook will not work.
- Load the guestbook page into your browser and try out the guestbook!
The guestbook.html code
<HTML>
<HEAD>
<TITLE>Example Guestbook</TITLE>
<!-- You will need to customize this page for your own use. -->
<!-- See the comments included in the code for hints on customizing. -->
</HEAD>
<BODY>
<!--GUESTBOOK--> <!-- Do NOT delete this line! -->
<H1>My Guestbook Page</H1>
<P>Hi, and welcome to my guestbook. Please sign below:</P>
<P>Last post on
<!-- Do NOT delete this line! --> <!--LASTDATE-->
<!-- Do NOT delete this line! --> <!--POINTER-->
<HR>
Sign the guestbook:<BR>
<FORM METHOD="POST" ACTION="/cgi-bin/guestbook.pl/THE PATH TO THIS FILE">
<!-- Delete the words "THE PATH TO THIS FILE" and replace them with the actual
path to this html file. e.g. ~username/filename.html -->
Name: <INPUT TYPE="text" NAME="name" SIZE="30" MAXLENGTH="30">
<BR>
E-mail address: <INPUT TYPE="text" NAME="address" SIZE="30" MAXLENGTH="30">
<BR>
<P>Text:<BR>
<TEXTAREA NAME="body" ROWS=15 COLS=60></TEXTAREA></P>
<BR>
<INPUT TYPE="submit" NAME="" VALUE="POST">
<INPUT TYPE="reset" NAME="" VALUE="CLEAR">
</FORM>
<!-- Put additional text, like an address or something, here. -->
</BODY>
</HTML>
|