- 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="http://www.yourdomain.com:8080/cgi-bin/guestbook.pl/~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.
- Use FTP to transfer the file to your webspace. Login using the webmaster login and password. Make sure you use your
FTP program to change the permissions on the file to 777. Most FTP clients have an option called "chmod" or a selection
of "UNIX commands." If you don't do this, the counter 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="http://www.yourdomain.com:8080/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. -->
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>
|