I have a regular html page which a user inputs some basic information into. This is stored on a Linux machine. This should then get emailed to the administrator once the submit button is pressed. I am using formMail to do this. I am sure I have configured it correctly. The paths to things eg usr/bin/perl are correct and the file permission for the script is set to 755. Ca anyone tell me why then I keep getting the internal server error 500. The html and the script are both below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
><!-- InstanceBegin template="/Templates/blabl
_formpage.
dwt" codeOutsideHTMLIsLocked="f
alse" -->
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<!-- InstanceBeginEditable name="doctitle" -->
<title>blabl Transcriber Form</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../Graphics/mm_healt
h_nutr.css
" type="text/css" />
<script src="../SpryAssets/SpryMen
uBar.js" type="text/javascript"></s
cript>
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February"
,"March","
April","Ma
y","June",
"July","Au
gust","Sep
tember","O
ctober","N
ovember","
December")
;
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE ---------------
</script>
<link href="../SpryAssets/SpryMe
nuBarHoriz
ontal.css"
rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-family: <ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="#">Item 1</a> </li> <li><a href="#">Item 2</a></li> <li><a class="MenuBarItemSubmenu"
href="#">Item 3</a> <ul> <li><a class="MenuBarItemSubmenu"
href="#">Item 3.1</a> <ul> <li><a href="#">Item 3.1.1</a></li> <li><a href="#">Item 3.1.2</a></li> </ul> </li> <li><a href="#">Item 3.2</a></li> <li><a href="#">Item 3.3</a></li> </ul> </li> <li><a href="#">Item 4</a></li> </ul>Arial, Helvetica, sans-serif}
-->
</style>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:841px;
top:224px;
width:40px;
height:370px;
z-index:1;
}
#apDiv2 {
position:absolute;
left:889px;
top:211px;
width:170px;
height:234px;
z-index:1;
}
.style5 {
font-size: 24px;
color: #607240;
vertical-align: top;
}
.style6 {
color: #73142A
}
a:hover {
color: #A3C96B;
text-decoration: underline;
}
.style7 {font-size: 36px}
.style8 {
font-size: 16px;
padding: 0;
vertical-align: top;
}
a:link {
color: #73142A;
text-decoration: none;
}
a:visited {
color: #73142A;
text-decoration: none;
}
a:active {
color: #73142A;
text-decoration: none;
}
#apDiv3 {
position:absolute;
left:13px;
top:166px;
width:135px;
height:21px;
z-index:1;
}
#apDiv4 {
position:absolute;
left:33px;
top:166px;
width:82px;
height:22px;
z-index:1;
}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<script src="../SpryAssets/SpryVal
idationTex
tField.js"
type="text/javascript"></s
cript>
<link href="../SpryAssets/SpryVa
lidationTe
xtField.cs
s" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
<meta name="Keywords" content="hooja stuff UK NHS PCT Typing hooja lady outsourcing" />
<meta name="Description" content="hooja stuff outsourcing for UK NHS hooja typing" />
<meta name="blabl hooja stuff" content="blabl UK Based hooja stuff" />
<meta name="Description" content="hooja stuff using UK based hooja typists and hooja ladies for NHS and other healthcare stuff" />
<script src="../Scripts/AC_RunActi
veContent.
js" type="text/javascript"></s
cript>
</head>
<body bgcolor="#F4FFE4">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#D5EDB3">
<td colspan="2" rowspan="2"><a href="../index.html"><img src="../Graphics/blabl Logo.jpg" alt="blabl Logo" width="143" height="123" hspace="10" vspace="10" border="0" /></a></td>
<td height="89" colspan="3" align="center" valign="bottom" nowrap="nowrap" id="logo"><div align="left">
<blockquote>
<p align="center" class="style7">blabl hooja stuff</p>
</blockquote>
</div></td>
<td width="101"> </td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="71" colspan="3" id="tagline" valign="top" align="center"><div align="left">
<blockquote>
<p align="center" class="style8">UK BASED hooja stuff </p>
</blockquote>
</div></td>
<td width="101"> </td>
</tr>
<tr>
<td colspan="6" bgcolor="#5C743D"><img src="../Graphics/mm_spacer
.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="6" bgcolor="#99CC66" background="../Graphics/mm
_dashed_li
ne.gif"><i
mg src="../Graphics/mm_dashed
_line.gif"
alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr bgcolor="#99CC66">
<td height="20" colspan="6" class="style1" id="dateformat"><ul id="MenuBar1" class="MenuBarHorizontal">
<li>
<div align="center"><a href="../index.html" title="Home">Home</a> </div>
</li>
<li><a href="#" title="stuff services offered- choose one of the below" class="MenuBarItemSubmenu"
>Services<
/a>
<ul>
<li><a href="../NHS Trusts.html" title="stuff services for Trusts and PCTs">NHS Trusts</a></li>
<li><a href="../Privatepractices.
html" title="stuff services for UK private practices">Private Practice</a></li>
</ul>
</li>
<li><a href="#" title="Corporate" class="MenuBarItemSubmenu"
>Corporate
</a>
<ul>
<li><a href="../Corporate info.html" title="Company">Company info</a> </li>
<li><a href="../Customerlist.html
" title="Customers">Customer
s</a></li>
<li><a href="../Press.html" title="PR">Press Releases</a></li>
<li><a href="
http://www.blabl.com/news" title="News" target="_blank">News</a></
li>
</ul>
</li>
<li><a href="../Gen_Contact.html"
title="Contact details" class="MenuBarHorizontal">
Contact us</a></li>
<li><a href="../introfortranscrib
ers.html" title="Information for those wishing to become transcribers">Transcribers
</a> </li>
</ul> </td>
</tr>
<tr>
<td colspan="6" bgcolor="#99CC66" background="../Graphics/mm
_dashed_li
ne.gif"><i
mg src="../Graphics/mm_dashed
_line.gif"
alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr>
<td colspan="6" bgcolor="#5C743D"><img src="../Graphics/mm_spacer
.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td width="166" height="431"><div align="center" class="subHeader">
<input type=button value="Back" onClick="history.go(-1)">
</div></td>
<td colspan="2" valign="top"><img src="../Graphics/mm_spacer
.gif" alt="" width="305" height="1" border="0" /><br />
<br />
<br />
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="pageName"><!-- InstanceBeginEditable name="Main_title" -->Transcriber's application form<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td class="bodyText"><!-- InstanceBeginEditable name="Main_body" -->
<p class="main_body">If you would like to apply to become a transcriber on blabl then please fill in the following form.</p>
<p class="main_body"> </
p>
<p class="main_body">Once we have received it, you should receive an emailed response within 24 hours (during the working week). Please do <strong>not</strong> contact us by email or telephone to check that we have received the form until a couple of days have elapsed.</p>
<p class="main_body"> </
p>
<p class="main_body">Note that we only accept applications from experienced hooja ladies- if you have not had extensive hooja stuff experience then please do not apply. We will also require a reference from either a consultant or line manager within a Trust or PCT.</p>
<p class="main_body"> </
p>
<p class="main_body">If we decide to progress your application then we will require a <strong>written</strong> reference from a line manager or consultant within your Trust or PCT. It may be worthwhile organising this now in order to avoid any delays.</p>
<p class="main_body"> </
p>
<p class="main_body">In order to use the system you will need to have a PC and a broadband connection.</p>
<p class="main_body"> </
p>
<form id="form1" name="form1" method="post" action="
http://www.blabl.com/cgi-bin/return.pl">
<table width="100%" border="0" cellpadding="4">
<tr>
<td>Name</td>
<td><span id="sprytextfield1">
<input type="text" name="NameText" id="NameText" />
<span class="textfieldRequiredMs
g">A value is required.</span></span></t
d>
</tr>
<tr>
<td>Email</td>
<td><span id="sprytextfield2">
<input type="text" name="EmailText" id="EmailText" />
<span class="textfieldRequiredMs
g">A value is required.</span><span class="textfieldInvalidFor
matMsg">In
valid format.</span></span></td>
</tr>
<tr>
<td><p>Telephone Number</p> </td>
<td><span id="sprytextfield3">
<input type="text" name="Telephone" id="Telephone" />
<span class="textfieldRequiredMs
g">A value is required.</span></span></t
d>
</tr>
<tr>
<td>Years' experience in hooja typing</td>
<td><span id="sprytextfield4">
<input type="text" name="Yearsexp" id="Yearsexp" />
<span class="textfieldRequiredMs
g">A value is required.</span></span></t
d>
</tr>
<tr>
<td><p>List the specialities that you have </p>
<p>(and the number of years for each)</p></td>
<td><textarea name="specs list" id="specs list" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td>Comments</td>
<td><textarea name="comments" id="comments" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input name="submit" type="submit" class="subHeader" id="submit" value="Submit" />
<input name="Clearform" type="reset" class="subHeader" id="Clearform" value="Clear" /></td>
</tr>
</table>
</form>
<p class="main_body"> </
p>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationText
Field("spr
ytextfield
1", "none", {validateOn:["blur"]});
var sprytextfield2 = new Spry.Widget.ValidationText
Field("spr
ytextfield
2", "email", {validateOn:["blur"]});
var sprytextfield3 = new Spry.Widget.ValidationText
Field("spr
ytextfield
3", "none", {validateOn:["blur"]});
var sprytextfield4 = new Spry.Widget.ValidationText
Field("spr
ytextfield
4", "none", {validateOn:["blur"]});
//-->
</script>
<!-- InstanceEndEditable --></td>
</tr>
</table>
<br />
<br /> </td>
<td width="50"><img src="../Graphics/mm_spacer
.gif" alt="" width="50" height="1" border="0" /></td>
<td width="19" valign="top"><br />
<br /></td>
<td width="101"> </td>
</tr>
<tr>
<td width="166"> </td>
<td width="4"> </td>
<td width="827" class="small_text_bottom">
<p> </p>
<p> <a href="javascript:window.pr
int()">Pri
nt Page</a> | <a href="
http://www.blabllogin.com">Exi
sting users</a>| <a href="Legals.html">Legal</
a> | <a href="
http://www.blabl.com/news" target="_blank">News</a> | <a href="../Helpcentre/index.
html" target="_blank">Helpcenter
</a> | <a href="../Gen_Contact.html"
>Contact us</a></p>
<p>
<!-- Google CSE Search Box Begins -->
<script type="text/javascript" src="
http://www.google.com/coop/cse/brand?form=searchbox_012360755102829816899%3Alhsxeqyfoha"></
script>
<!-- Google CSE Search Box Ends -->
</p>
</td>
<td width="50"> </td>
<td width="19"> </td>
<td width="101"> </td>
</tr>
</table>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuB
ar1", {imgDown:"SpryAssets/SpryM
enuBarDown
Hover.gif"
, imgRight:"SpryAssets/SpryM
enuBarRigh
tHover.gif
"});
//-->
</script>
</body>
<!-- InstanceEnd --></html>
The script:
#!/usr/bin/perl
#
# NMS FormMail Version 3.14c1
#
use strict;
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog @referers
@allow_mail_to @recipients %recipient_alias
@valid_ENV $date_fmt $style $send_confirmation_mail
$confirmation_text $locale $charset $no_content
$double_spacing $wrap_text $wrap_style $postmaster
$address_style
);
# PROGRAM INFORMATION
# -------------------
# FormMail.pl Version 3.14c1
#
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <
http://www.gnu.org/licenses/gpl.html> or
# the Artistic License
# <
http://www.perl.com/pub/a/language/misc/Artistic.html>
#
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.
# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
#
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 1;
$mailprog = '/usr/lib/sendmail -t -i';
$postmaster = '';
@referers = ();
@allow_mail_to = qw(applications@blabla.com
);
@recipients = (sebastiz@blabla.com);
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: forms@blabla.com
Subject: Form submission
Thank you for submitting your details.
We will get back to you soon
END_OF_CONFIRMATION
}