sulfericacid
Programmer
Hello everyone,
I am getting an internal server error (ISE) when trying to run my perl form. The script is below, please let me know if you notice any bugs which may have caused it to be non functional.
Thanks.
script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
######################################################################
##########################VARIABLES/MUST EDIT########################
# Change with your email account
$adminemail='sulfericacid@qwest.net';
# Change to correct path of sendmail
$sendmail='/usr/sbin/sendmail';
# Homepage url, do not link to form, use your index. Ie. "$homepage='
# Change to enclosure. Ie. "Sincerly yours"
$thanks='Thank you for visiting our site, please come again!';
# Change to autoresponse.
$autoresponse ='This is an autoresponse from SpyderSubmission. Your message was received. If you are awating a response, please allow upto 8 hours';
use CGI qwstandard) ;
my $adminemail = param("adminemail"
my $webmastername = param("webmastername"
my $recipientemail = param("recipientemail" ;
my $visitorname = param("visitorname"
my $weburl = param("weburl"
my $subject = param("subject"
my $subject2 = param("subject2"
my $message = param("message"
my $autoresponse = param("autoresponse"
######################################################################
#######################EMAIL TO VISITOR/DON'T EDIT######################
open(MAIL,"|$sendmail -t"
print MAIL "To: $recipientemail\n";
print MAIL "From: $adminemail\n";
print MAIL "Subject: $subject\n";
print MAIL "Greetings, $visitorname\n\n";
print MAIL "$autoresponse\n\n";
print MAIL "You wrote-$message\n\n";
print MAIL "$thanks\n";
print MAIL "$webmastername\n";
print MAIL "mailto:$adminemail\n";
print MAIL "$homepage\n";
close(MAIL);
######################################################################
#######################EMAIL TO ADMIN/DON'T EDIT#######################
open(MAIL,"|$sendmail -t"
print MAIL "To: $adminemail\n";
print MAIL "From: $recipientemail\n";
print MAIL "Subject: $subject2\n";
print MAIL "Name- $visitorname\n";
print MAIL "Email- $recipientemail\n";
print MAIL "URL- $weburl\n";
print MAIL "Message- $message\n";
close(MAIL);
######################################################################
#############################Page Printing############################
print <<"EOF";
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>SpyderSubmission- Professional Submission and Marketing Services</title>
<META NAME="Keywords" CONTENT="submission,promotion,website,site,free,e-business,search engines,url submission,url,search,engines,increase,traffic,web site promtion,submissions,nothernlight,hotbot,google,search engine promotion,higher ranking,hits,marketing,automatic promotion,banner ads,banner design,aol,professional,services,professional services,web design,custom scripting, custom programming,programming,tutorials">
<META NAME="Description" CONTENT="Free and fee-based website submission/marketing services. Find out how to drive more customers to your site with our state-of-the-art tools!">
<META NAME="Author" CONTENT="Aaron Anderson">
<META NAME="Copyright" CONTENT="SpyderOnline 1999-2003">
<META NAME="Creator" CONTENT="Aaron Anderson">
<META NAME="Publisher" CONTENT="Aaron Anderson">
<META NAME="Distribution" CONTENT="Global">
<META NAME="Rating" CONTENT="General">
<META NAME="Robots" CONTENT="All">
<META NAME="Revisit-After" CONTENT="7 Days">
<LINK REV=made href="mailto:sulfericacid@spydersubmission.com">
<link rel="STYLESHEET" type="text/css" href=" </head>
<body>
<table width="99%" summary="header" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%"> <img src=" alt="Logo" width="96"><br>
</td>
<td width="50%" align="center">
<! --- add banner here --->
</td>
</tr>
</table>
<table summary="" width="99%" height="15" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td class="s">
</td>
</tr>
</table>
<table summary="" width="99%" cellpadding="4" cellspacing="0" border="0">
<tr>
<td width="50%"> <a href=" <td width="50%" align="right">
</td>
</tr>
</table>
<table summary="" width="99%" height="32" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td class="t"> <a href=" <img src=" alt="">
<a href=" <img src=" alt="" border="0">
<a href=" <img src=" alt="">
<a href=" <img src=" alt="">
<a href=" target="_blank">Order</a>
<img src=" alt=""> <a href=" </td>
</tr>
</table>
<!--BODY starts here-->
<table width="99%" height="250" align="center" summary="Body">
<tr>
<td>
<center><p><font color=blue>Thank You!</font></p></center>
<p></p>
<p></p>
<p>Your submission was received and is currently being processed. If you are awaiting for a response, please allow up to 5-8 hours.</p>
<p></p>
<p>In the mean time, why not check out the rest of the site? We have many things to offer for the designing of websites and the submission/marketing of businesses.</p>
<p></p>
<p>Regards,</p>
<p>President</p>
<p><a href="mailto://sulfericacid@qwest.net">Aaron Anderson</a></p>
</td>
</tr>
<tr>
<td align="center"><img src=" src=" src=" src=" src=" src=" </td>
</tr>
</table>
<!--BODY ends here-->
<table width="99%" height="32" cellpadding="0" cellspacing="0" border="0" summary="footer">
<tr>
<td class="t"> <a href=" <img src=" alt=""> <a href=" Gen </a> <img src=" alt="">
<a href=" Analysis </a> <img src=" alt="">
<a href=" Scripts</a>
<img src=" alt=""> <a href=" <img src=" alt=""> <a href=" Research</a> </td>
</tr>
</table>
<br>
<table width="99%" summary="footer">
<tr>
<td>
<!-- Replace the contact information below with your site's information. You may remove the Powered By Free Site Templates but I always appreciate a link -->
<p>© SpyderSubmission. SpyderSubmission.com, the domain, and all content in part or in whole is copyright SpyderSubmission 1999-2002. No portion of this site may be reproduced without prior consent from district offices. Page design by SpyderOnline.
</td>
</tr>
</table>
</body>
</html>
EOF
I am getting an internal server error (ISE) when trying to run my perl form. The script is below, please let me know if you notice any bugs which may have caused it to be non functional.
Thanks.
script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
######################################################################
##########################VARIABLES/MUST EDIT########################
# Change with your email account
$adminemail='sulfericacid@qwest.net';
# Change to correct path of sendmail
$sendmail='/usr/sbin/sendmail';
# Homepage url, do not link to form, use your index. Ie. "$homepage='
# Change to enclosure. Ie. "Sincerly yours"
$thanks='Thank you for visiting our site, please come again!';
# Change to autoresponse.
$autoresponse ='This is an autoresponse from SpyderSubmission. Your message was received. If you are awating a response, please allow upto 8 hours';
use CGI qwstandard) ;
my $adminemail = param("adminemail"
my $webmastername = param("webmastername"
my $recipientemail = param("recipientemail" ;
my $visitorname = param("visitorname"
my $weburl = param("weburl"
my $subject = param("subject"
my $subject2 = param("subject2"
my $message = param("message"
my $autoresponse = param("autoresponse"
######################################################################
#######################EMAIL TO VISITOR/DON'T EDIT######################
open(MAIL,"|$sendmail -t"
print MAIL "To: $recipientemail\n";
print MAIL "From: $adminemail\n";
print MAIL "Subject: $subject\n";
print MAIL "Greetings, $visitorname\n\n";
print MAIL "$autoresponse\n\n";
print MAIL "You wrote-$message\n\n";
print MAIL "$thanks\n";
print MAIL "$webmastername\n";
print MAIL "mailto:$adminemail\n";
print MAIL "$homepage\n";
close(MAIL);
######################################################################
#######################EMAIL TO ADMIN/DON'T EDIT#######################
open(MAIL,"|$sendmail -t"
print MAIL "To: $adminemail\n";
print MAIL "From: $recipientemail\n";
print MAIL "Subject: $subject2\n";
print MAIL "Name- $visitorname\n";
print MAIL "Email- $recipientemail\n";
print MAIL "URL- $weburl\n";
print MAIL "Message- $message\n";
close(MAIL);
######################################################################
#############################Page Printing############################
print <<"EOF";
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>SpyderSubmission- Professional Submission and Marketing Services</title>
<META NAME="Keywords" CONTENT="submission,promotion,website,site,free,e-business,search engines,url submission,url,search,engines,increase,traffic,web site promtion,submissions,nothernlight,hotbot,google,search engine promotion,higher ranking,hits,marketing,automatic promotion,banner ads,banner design,aol,professional,services,professional services,web design,custom scripting, custom programming,programming,tutorials">
<META NAME="Description" CONTENT="Free and fee-based website submission/marketing services. Find out how to drive more customers to your site with our state-of-the-art tools!">
<META NAME="Author" CONTENT="Aaron Anderson">
<META NAME="Copyright" CONTENT="SpyderOnline 1999-2003">
<META NAME="Creator" CONTENT="Aaron Anderson">
<META NAME="Publisher" CONTENT="Aaron Anderson">
<META NAME="Distribution" CONTENT="Global">
<META NAME="Rating" CONTENT="General">
<META NAME="Robots" CONTENT="All">
<META NAME="Revisit-After" CONTENT="7 Days">
<LINK REV=made href="mailto:sulfericacid@spydersubmission.com">
<link rel="STYLESHEET" type="text/css" href=" </head>
<body>
<table width="99%" summary="header" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%"> <img src=" alt="Logo" width="96"><br>
</td>
<td width="50%" align="center">
<! --- add banner here --->
</td>
</tr>
</table>
<table summary="" width="99%" height="15" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td class="s">
</td>
</tr>
</table>
<table summary="" width="99%" cellpadding="4" cellspacing="0" border="0">
<tr>
<td width="50%"> <a href=" <td width="50%" align="right">
</td>
</tr>
</table>
<table summary="" width="99%" height="32" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td class="t"> <a href=" <img src=" alt="">
<a href=" <img src=" alt="" border="0">
<a href=" <img src=" alt="">
<a href=" <img src=" alt="">
<a href=" target="_blank">Order</a>
<img src=" alt=""> <a href=" </td>
</tr>
</table>
<!--BODY starts here-->
<table width="99%" height="250" align="center" summary="Body">
<tr>
<td>
<center><p><font color=blue>Thank You!</font></p></center>
<p></p>
<p></p>
<p>Your submission was received and is currently being processed. If you are awaiting for a response, please allow up to 5-8 hours.</p>
<p></p>
<p>In the mean time, why not check out the rest of the site? We have many things to offer for the designing of websites and the submission/marketing of businesses.</p>
<p></p>
<p>Regards,</p>
<p>President</p>
<p><a href="mailto://sulfericacid@qwest.net">Aaron Anderson</a></p>
</td>
</tr>
<tr>
<td align="center"><img src=" src=" src=" src=" src=" src=" </td>
</tr>
</table>
<!--BODY ends here-->
<table width="99%" height="32" cellpadding="0" cellspacing="0" border="0" summary="footer">
<tr>
<td class="t"> <a href=" <img src=" alt=""> <a href=" Gen </a> <img src=" alt="">
<a href=" Analysis </a> <img src=" alt="">
<a href=" Scripts</a>
<img src=" alt=""> <a href=" <img src=" alt=""> <a href=" Research</a> </td>
</tr>
</table>
<br>
<table width="99%" summary="footer">
<tr>
<td>
<!-- Replace the contact information below with your site's information. You may remove the Powered By Free Site Templates but I always appreciate a link -->
<p>© SpyderSubmission. SpyderSubmission.com, the domain, and all content in part or in whole is copyright SpyderSubmission 1999-2002. No portion of this site may be reproduced without prior consent from district offices. Page design by SpyderOnline.
</td>
</tr>
</table>
</body>
</html>
EOF