Tripod Tripod
New Users:  Sign Up    Members:  Log In
 
HOME
   help
BEGINNER
Start
What is CGI?
Getting a Script
Where your files are
Changing Variables I
>>Changing Variables II
Final Tweaks
Summary

Main Menu

To get the guestbook.pl script running correctly, you need to change the following four variables:

$guestbookurl -- The URL of your guestbook.html file
$guestbookreal -- The system location of your guestbook.html file
$guestlog -- The system location of your guestlog.html file
$cgiurl -- The URL portion of the address to the guestbook.pl file

Let's take a look at each of these variables to see what they're doing:

$guestbookurl -- The URL of your guestbook.html file
Remember that any HTML file that a script needs to access must be in your cgi-bin, and that CGI scripts are run off a special server. This line of code would be changed to:
$guestbookurl="http://cgi.tripod.com/your_membername/cgi-bin/guestbook.html";

$guestbookreal -- The system location of your guestbook.html file

The CGI server doesn't recognize any of Tripod's other servers while your script is running, so the system location of any file in your cgi-bin is simply "filename." This line of code needs to be:
$guestbookreal="guestbook.html";

$guestlog -- The system location of your guestlog.html file
This uses coding similar to that found in the code for $guestbookreal. The code is:
$guestlog="guestlog.html";

$cgiurl -- The URL portion of the address to the guestbook.pl file
CGI scripts have the same basic URL as other files in your cgi-bin. Use the following code:
$cgiurl="http://cgi.tripod.com/your_membername/cgi-bin/guestbook.pl";

We're nearly there! We've got just a few final tweaks before your guestbook will be up and running.



    Tripod: Home | Site Map | About Tripod | International | Tripod Help | Report Tripod Abuse | Members | Angelfire Members

     » Lycos.com  © Copyright 2008, Lycos, Inc. Lycos is a registered trademark of Lycos, Inc. All Rights Reserved.
     About Lycos | Help | Jobs | Advertise

     Your use of this website constitutes acceptance of the Lycos Privacy Policy and Terms & Conditions