Thread: CGI expert?
View Single Post
  #5  
Old 08-20-2001, 10:52 PM
reefburnaby reefburnaby is offline
Member
 
Join Date: Aug 2001
Location: Burnaby, B.C.
Posts: 766
reefburnaby is on a distinguished road
Default CGI expert?

Hello Titus,

I fired up IIS on my machine and installed the script. It seems to work....you might want to check what $DATA_PATH is being interpreted as. Silly things like wrong slash direction ('\' vs '/') can mess it up.

Try adding this to the offending 'if' command...

sub check_files{
$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";
print $DATA_FILE;
exit;

when it dies...you should see if $DATA_FILE is correct. $DATA_FILE should be a path that is valid to the perl interpreter. ie. mine is c:\inetpub\wwwroot\survey\survey.srv.

BTW, %fields is passed through the html form.

Hope that helps.

[ 20 August 2001: Message edited by: reefburnaby ]
Reply With Quote