djscottyis
12-08-2007, 03:06 AM
Im trying to set up a form to add to our web site
This is the page the form is on http://www.asiarewardsholidays.com/example_form.html
This is the address of the cgi script http://www.asiarewardsholidays.com/cgi-bin/bizmail.cgi
But I get this code error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, helpdesk@phuket.ksc.co.th and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
This is the script please could you tell me if this is ok
#!/www/cgi-bin/perl
## make sure the path to pearl is correct above. ##
#----- FULL SERVER PATH TO CGI-BIN -----#
## IF YOU ARE HAVING PROBLEMS RUNNING BIZ MAIL FORM TRY INSERTING THE
## "ABSOLUTE SERVER PATH" TO YOUR CGI-BIN BELOW... **OTHERWISE LEAVE THIS BLANK, WHICH IS THE DEFAULT.
## When adding a path you must use a trailing forward slash:
## ie. /home/www/cgi-bin/
## You may need to check with your web host or systems admin for this.
## NOTE: this may be necessary for windows users...
$ABSOLUTE_PATH_TO_CGI_BIN = "/www/cgi-bin/";
#----- S E N D M A I L & S M T P S E T T I N G S -----#
## $useLib defines the method of sending the email auto response and email form info. ##
## Set $useLib = "sendmail"; TO USE THE SENDMAIL METHOD
## Set $useLib = "smtp"; TO USE THE SMTP METHOD
$useLib = "sendmail";
## BELOW CONFIGURED IF $useLib = "sendmail"; ##
$mailprog = "/usr/lib/sendmail"; ## $mailprog = path to Sendmail on your server ##
## BELOW CONFIGURED IF $useLib = "smtp"; ##
$smtp_server = "smtp.asiarewardsholidays.com"; ## $smtp_server = smtp server address ##
#----- F R O M E M A I L O N D A T A R E S U L T S E M A I L -----#
# Set $send_from_poster = "1"; To use posters email address as the from email #
# Set $send_from_poster = "2"; To use $FROM_results_email as the from email #
$send_from_poster = "2";
$FROM_results_email = "nfo\@asiarewardsholidays.com";
#----- S E N D T O E M A I L S E T U P -----#
## $sendto{"1"} is Where form submissions will be sent, ##
## (REMEMBER THE \ BEFORE THE @ SIGN) ##
## This is also the reply address used in the auto response to person filling out the ##
## form. ##
$sendto{"1"} = "info\@asiarewardsholidays.com"; ## (REMEMBER THE \ BEFORE THE @ SIGN)##
$sendto{"2"} = "djscottyis\@hotmail.com";
$sendto{"3"} = "mail3\@yourdomain.com";
#----- S E T O K S U B M I S S I O N U R L -----#
$setokurl = "0";
## to use @okurls to verify the url the form is submited by set $setokurl = "1"; and ##
## set $setokurl = "0"; if you do not want to use @okurls to verfiy form submission URL ##
## This feature has been updated, read the readme file for more information ##
@okurls = ("http://www.yourdomain.com/", "http://yourdomain.com/", "https://yourdomain.com/", "https://www.yourdomain.com/");
This is the page the form is on http://www.asiarewardsholidays.com/example_form.html
This is the address of the cgi script http://www.asiarewardsholidays.com/cgi-bin/bizmail.cgi
But I get this code error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, helpdesk@phuket.ksc.co.th and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
This is the script please could you tell me if this is ok
#!/www/cgi-bin/perl
## make sure the path to pearl is correct above. ##
#----- FULL SERVER PATH TO CGI-BIN -----#
## IF YOU ARE HAVING PROBLEMS RUNNING BIZ MAIL FORM TRY INSERTING THE
## "ABSOLUTE SERVER PATH" TO YOUR CGI-BIN BELOW... **OTHERWISE LEAVE THIS BLANK, WHICH IS THE DEFAULT.
## When adding a path you must use a trailing forward slash:
## ie. /home/www/cgi-bin/
## You may need to check with your web host or systems admin for this.
## NOTE: this may be necessary for windows users...
$ABSOLUTE_PATH_TO_CGI_BIN = "/www/cgi-bin/";
#----- S E N D M A I L & S M T P S E T T I N G S -----#
## $useLib defines the method of sending the email auto response and email form info. ##
## Set $useLib = "sendmail"; TO USE THE SENDMAIL METHOD
## Set $useLib = "smtp"; TO USE THE SMTP METHOD
$useLib = "sendmail";
## BELOW CONFIGURED IF $useLib = "sendmail"; ##
$mailprog = "/usr/lib/sendmail"; ## $mailprog = path to Sendmail on your server ##
## BELOW CONFIGURED IF $useLib = "smtp"; ##
$smtp_server = "smtp.asiarewardsholidays.com"; ## $smtp_server = smtp server address ##
#----- F R O M E M A I L O N D A T A R E S U L T S E M A I L -----#
# Set $send_from_poster = "1"; To use posters email address as the from email #
# Set $send_from_poster = "2"; To use $FROM_results_email as the from email #
$send_from_poster = "2";
$FROM_results_email = "nfo\@asiarewardsholidays.com";
#----- S E N D T O E M A I L S E T U P -----#
## $sendto{"1"} is Where form submissions will be sent, ##
## (REMEMBER THE \ BEFORE THE @ SIGN) ##
## This is also the reply address used in the auto response to person filling out the ##
## form. ##
$sendto{"1"} = "info\@asiarewardsholidays.com"; ## (REMEMBER THE \ BEFORE THE @ SIGN)##
$sendto{"2"} = "djscottyis\@hotmail.com";
$sendto{"3"} = "mail3\@yourdomain.com";
#----- S E T O K S U B M I S S I O N U R L -----#
$setokurl = "0";
## to use @okurls to verify the url the form is submited by set $setokurl = "1"; and ##
## set $setokurl = "0"; if you do not want to use @okurls to verfiy form submission URL ##
## This feature has been updated, read the readme file for more information ##
@okurls = ("http://www.yourdomain.com/", "http://yourdomain.com/", "https://yourdomain.com/", "https://www.yourdomain.com/");