Thread: CGI expert?
View Single Post
  #4  
Old 08-20-2001, 03:14 PM
titus's Avatar
titus titus is offline
Administrator
 
Join Date: Aug 2001
Location: Hong Kong
Posts: 3,163
titus has disabled reputation
Default CGI expert?

Hello reefburnaby,

Yes, $DATA_PATH/clubschedule.srv does exist.
I'm looking at the cgi script and it has the following:
$DATA_FILE="$DATA_PATH/$SURVEY_NAME\.srv";
$LOG_FILE="$DATA_PATH/$SURVEY_NAME\.log";
if ( !-e $DATA_FILE){
print "Content-type: text/html\n\n Data File is Missing!\n";
exit;
}

The $DATA_PATH variable was declared by me using the correct path. However, a search for $SURVEY_NAME led to:

if ($fields{'survey_name'}=~/^([-\@\w.]+)$/){
$SURVEY_NAME=$fields{'survey_name'};
}

But I am unable to see %fields being declared anywhere else. Perhaps you can shed some light on this.

Thanks
Titus
Reply With Quote