Home > Support > WWW > Design

Putting a guestbook on your home page

There is a guestbook CGI script that you can put on your home page so you gather information about the people that are accessing your pages. This guestbook is only available to accounts using their personal web space, and is not currently available to our Virtual Hosted sites. Below are sample HTML scripts that you can embed in a HTML file to use the guestbook.

This first script writes to the guestbook. You must put your username enclosed in quotes, where it says "yourusername". The other field, named "mode" tells the guestbook program what action to take. Those two fields are required. Name of the fields (username, mode, guestname, guestaddress, aux1, aux2) can not be changed or the script will not work properly. If you do not want to use a field, just leave it off your script.

<form method="post" action="http://www.cloudnet.com/cgi-bin/guestbook">
<input type="hidden" Name="username" Value="yourusername">
<input type="hidden" name="mode" Value="write">
Enter your name: <input type="text" Name="guestname"> <br>
Enter your E-mail address: <input type="text" Name="guestaddress"> <br>
Enter your age: <input type="text" name="aux1"><br>
Enter your occupation: <input type="text" name="aux2"><br>
<input type="submit" Value="Scribe on thy book"> <input type="reset" Value="Discard thy changes">
</form>

This second script reads the guestbook file. Notice that it only takes your username and the mode. Everything else is read from guestbook.

<form method="post" action="http://www.cloudnet.com/cgi-bin/guestbook">
<input type="hidden" name="username" Value="yourusername">
<input type="hidden" name="mode" Value="read">
<input type="submit" value="Read the guestbook">
</form>

Insert either HTML fragment into an HTML document and guestbook should work fine! If not, E-mail tech@cloudnet.com with your question and someone will help you get it working.

Webmail | Central | Services | Links | Search | Support

- - - + + + Contact Cloudnet + + + - - -  320.240.8243