\n";
$headers .="Content-Type: text/html; charset=iso-8859-1 \n";
$subject = "TRAXX Contact Form";
$header_part = "
";
for ($a=1; $a<= $_POST['text_field_number']; $a++) {
$text_fields_part .= "" . $_POST['field_title'.$a] . " = " . $_POST['field'.$a] . "
";
}
if ($_POST['email_field_number'] != 0) {
$email_field_part = "" . $_POST['email_title'] . " = " . $_POST['email_field'] . "
";
}
if ($_POST['textarea_number'] != 0) {
$text_area_field = "" . $_POST['textarea_title'] . " = " . $_POST['textarea_field'] . "
";
$text_area_field = stripslashes($text_area_field);
}
$end = "";
$output = $header_part . $text_fields_part . $email_field_part . $text_area_field . $end;
// Send the e-mail
if (@!mail($form_email,$subject,$output,$headers)) {
echo("Cannot send the form");
} else { // Closing if !mail...
// Redirect to the thank you page
header("Location:http://www.traxxstudio.com/thanks.html");
exit();
} // Fin du else
} // Closing if edit
?>