Hi,
I’ve created a form where I ask the user to fill out a few text boxes (name, address, etc.) and then submit the form. When they click the Submit button 3 things are supposed to happen: A script runs to make sure the user filled out all the Required fields; an e-mail is sent to me containing all the information the user entered; and the user jumps to a “thanks for participating” page. This has all worked perfectly for months, but now all of a sudden it’s stopped working correctly.
Now when the user clicks “Submit”, the form hangs and eventually they get a “Connection timed out” error. The script is running properly, I still receive the e-mail with all of the user’s information, but they’re not jumping to the “thank you” page. Instead, all the user sees is the “connection timed out” error. Here is the code I’ve used:
[B]This is the pertinent code on the form itself:
<form method=”POST” action=”zlottproc.php” name=”form” onSubmit=”return checkFields2()”>
[B]This is the code for the ‘zlottproc.php’ page:
<?
$to = “
$subject = “New Submission”;
$body = “This submission is from nnName: $fullnamennTitle: $titlennCompany: $companynnEmail: $emailnnPhone: $phonenn”;
mail($to,$subject,$body);
header(“Location: thankyou_hg.phtml”);
?>
Anyone have any ideas about what’s causing the process to suddenly time out like this? Is it a hardware issue perhaps? (Again, the code hasn’t been touched since it was working fine.) The website resides on a Windows 2000 server.
Any help is greatly appreciated!!