PHP help


#1

One of my PHP pages are not working, and for the life of me, I cannot figure out why.

Hopefully I can post the script in here, and it will only show up as text (I will try!)

<? /* Close-It */ // ------------- CONFIGURABLE SECTION ------------------------ // $mailto - set to the email address you want the form // sent to, eg //$mailto = "youremailaddress@example.com" ; $mailto = "closeitdayton@aol.com" ; // $subject - set to the Subject line of the email, eg //$subject = "Closing Order Form" ; $subject = "Closing Order Form" ; // the pages to be displayed, eg //$formurl = "http://www.example.com/feedback.html" ; //$errorurl = "error.html" ; //$thankyouurl = "thankyou.html" ; $formurl = "titleform.html" ; $errorurl = "error.html" ; $thankyouurl = "thankyou.html" ; // -------------------- END OF CONFIGURABLE SECTION --------------- $closername = $_POST['closername'] ; $county = $_POST['county'] ; $borrowername = $_POST['borrowername'] ; $Property_Address = $_POST['Property_Address'] ; $time = $_POST['time'] ; $company = $_POST['company'] ; $contact = $_POST['contact'] ; $phone = $_POST['phone'] ; $address= $_POST['address'] ; $city = $_POST['city'] ; $state = $_POST['state'] ; $zip = $_POST['zip'] ; $contactname = $_POST['contactname'] ; $contactphone = $_POST['contactphone'] ; $borrowersname = $_POST['borrowersname'] ; $borrowerpropertyaddress = $_POST['borrowerpropertyaddress'] ; $borrowercity = $_POST['borrowercity'] ; $borrowerstate = $_POST['borrowerstate'] ; $borrowerzip = $_POST['borrowerzip'] ; $homenumber = $_POST['homenumber'] ; $worknumber = $_POST['worknumber'] ; $coborrowername = $_POST['coborrowername'] ; $coworknumber = $_POST['coworknumber'] ; $othernumber = $_POST['othernumber'] ; $comments = $_POST['comments'] ; $married = $_POST['married'] ; $Overnight_Carrier_Used = $_POST['Overnight_Carrier_Used'] ; $type = $_POST['type'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (empty($closername) || empty($email) || empty($comments)) { header( "Location: $errorurl" ); exit ; } if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper = "Closing Confirmation\n" . "\n\nCloser's Name:\n" . $closername . "\n\nCounty:\n". $county . "\n\nBorrower's Name:\n" . $borrowername . "\n\nProperty Address:\n" . $Property_Address . "\n\nTime\n" . $time . "\n\nCompany\n" . $company . "\n\nContact:\n" . $contact . "\n\nPhone:\n" . $phone . "\n\nAddress:\n" . $address . "\n\nCity:\n" . $city . "\n\nState:\n" . $state . "\n\nZip:\n" . $zip . "\n\nContact Name:\n" . $contactname . "\n\nContact Phone:\n" . $contactphone . "\n\nBorrower's Name:\n" . $borrowersname . "\n\nMarried?:\n" . $married . "\n\nBorrower's Property Address:\n" . $borrowerpropertyaddress . "\n\nBorrower City:\n" . $borrowercity . "\n\nBorrower State:\n" . $borrowerstate . "\n\nBorrower Zip:\n" . $borrowerzip . "\n\nHome Phone Number:\n" . $homenumber . "\n\nWork Phone Number:\n" . $worknumber . "\n\nCo-Borrower Name:\n" . $coborrowername . "\n\nCo-Borrower Work Number:\n" . $coworknumber . "\n\nOther Number:\n" . $othernumber . "\n\nPackage Delivery:\n" . $Overnight_Carrier_Used . "\n\nType of Closing:\n" . $type . "\n\n------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ; "$http_referrer\n" . mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.02" ); header( "Location: $thankyouurl" ); exit ; ?>

It does not email to the address specified in $mail, nor does it redirect to the thankyou.html page once submitted. It acts as though it is not even running.

HELP???