Hi,
Thanks for the response.
In answer to your questions, the error message is the actual ‘error.htm’ page which is referenced in the .php form.
This is the actual .php form:
[code]<?php
// get posted data into local variables, these are required fields…
$EmailFrom = “approval”;
$EmailTo = "[email protected]";
$Subject = “Feedback Form from adecco.linney.com”;
$branchnumber = Trim(stripslashes($_POST[‘branchnumber’]));
$name = Trim(stripslashes($_POST[‘name’]));
$telnumber = Trim(stripslashes($_POST[‘telnumber’]));
$dateandtime = Trim(stripslashes($_POST[‘dateandtime’]));
$rateordersite = Trim(stripslashes($_POST[‘rateordersite’]));
$newsitecomments = Trim(stripslashes($_POST[‘newsitecomments’]));
// validation
$validationOK=true;
if (Trim($rateordersite)=="") $validationOK=false;
if (!$validationOK) {
print “”;
exit;
}
// prepare email body text
$Body = “”;
$Body .= "Branch Number: ";
$Body .= $branchnumber;
$Body .= “n”;
$Body .= “n”;
$Body .= "Name: ";
$Body .= $name;
$Body .= “n”;
$Body .= “n”;
$Body .= "Tel Number: ";
$Body .= $telnumber;
$Body .= “n”;
$Body .= “n”;
$Body .= "Date and Time: ";
$Body .= $dateandtime;
$Body .= “n”;
$Body .= “n”;
$Body .= "Rate Order Site: ";
$Body .= $rateordersite;
$Body .= “n”;
$Body .= “n”;
$Body .= "New Site Comments: ";
$Body .= $newsitecomments;
$Body .= “n”;
$Body .= “n”;
$Body .= "Site Improvement Suggestions: ";
$Body .= $siteimprovementsuggestions;
$Body .= “n”;
$Body .= “n”;
$Body .= "Helpline Assistance Rating: ";
$Body .= $HelplineAssistanceRating;
$Body .= “n”;
$Body .= “n”;
$Body .= "Satisfied With Adecco Line Staff: ";
$Body .= $SatisfiedWithAdeccoLineStaff;
$Body .= “n”;
$Body .= “n”;
$Body .= "Comments About Adecco Support: ";
$Body .= $CommentsAboutAdeccoSupport;
$Body .= “n”;
$Body .= “n”;
$Body .= "Orders Delivered On Time?: ";
$Body .= $orders;
$Body .= “n”;
$Body .= “n”;
$Body .= "Any Issues with Orders: ";
$Body .= $orderissues;
$Body .= “n”;
$Body .= “n”;
$Body .= "Packaged Well? Any Damage Suffered in Transit?: ";
$Body .= $transitcomments;
$Body .= “n”;
$Body .= “n”;
$Body .= "Any Comments Regarding Your Order, or Delivery of Orders?: ";
$Body .= $ordercomments;
$Body .= “n”;
$Body .= “n”;
$Body .= "Any Suggestions on Improving Our Relationship with Adecco Branches?: ";
$Body .= $improvementsuggestions;
$Body .= “n”;
$Body .= “n”;
$Body .= "Any Other Comments You Would Like To Make?: ";
$Body .= $othercomments;
$Body .= “n”;
// send email
$success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>”);
// redirect to success page
if ($success){
print “”;
}
else{
print “”;
}
?>
[/code]
Admin Edit: Closed the CODE tag