Hi. I'm having endless difficulty trying to get what should be a simple form to work.
The HTML form is actioned toward a Thankyou PHP page in which the following code is embedded after the opening <body> tag:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "email@example.com";
$mailsubj = "Listening Company Online Job Application";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Mailing List Submission:\n\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>
The thankyou php page appears with the following error message:
No input file specified. HTTP/1.1 503 Server too busy Connection: close Date: Thu, 12 Apr 2007 08:40:44 GMT Server: Microsoft-IIS/6.0 Content-Type: text/html Server Error, unable to connect to fastcgi server.
The link to the form is:
http://domain1263419.sites.fasthosts.com/online_application_2.htm
The hosting company say there is no scripting error and the problem is ith the code. Please could someone tell me what the problem is?
I have attached the two file is zip format. Thank you.