Where have i gone wrong?

the following code only loads the extension its called : /process.php rather than send the email and load confirm.html

<?php // The message $message = <<<MSG Full Name: {$_POST['NAME']} Address: {$_POST['ADDRESS']} Town: {$_POST['TOWN']} Post Code: {$_POST['POSTCODE']} Phone Number: {$_POST['PHONE']} Email: {$_POST['email']} Page Number: {$_POST['PageNumber']} Product Code: {$_POST['ProductCode']} Product Description: {$_POST['Description']} Price (£): {number_format($_POST['Price'], 2)} Quantity: {$_POST['Quantity']} Total: {number_format($_POST['Total'], 2)} Page Number: {$_POST['PageNumber2']} Product Code: {$_POST['ProductCode2']} Product Description: {$_POST['Description2']} Price (£): {number_format($_POST['Price2'], 2)} Quantity: {$_POST['Quantity2']} Total: {number_format($_POST['Total2'], 2)} Page Number: {$_POST['PageNumber3']} Product Code: {$_POST['ProductCode3']} Product Description: {$_POST['Description3']} Price (£): {number_format($_POST['Price3'], 2)} Quantity: {$_POST['Quantity3']} Total: {number_format($_POST['Total3'], 2)} Page Number: {$_POST['PageNumber4']} Product Code: {$_POST['ProductCode4']} Product Description: {$_POST['Description4']} Price (£): {number_format($_POST['Price4'], 2)} Quantity: {$_POST['Quantity4']} Total: {number_format($_POST['Total4'], 2)} Page Number: {$_POST['PageNumber5']} Product Code: {$_POST['ProductCode5']} Product Description: {$_POST['Description5']} Price (£): {number_format($_POST['Price5'], 2)} Quantity: {$_POST['Quantity5']} Total: {number_format($_POST['Total5'], 2)} Page Number: {$_POST['PageNumber6']} Product Code: {$_POST['ProductCode6']} Product Description: {$_POST['Description6']} Price (£): {number_format($_POST['Price6'], 2)} Quantity: {$_POST['Quantity6']} Total: {number_format($_POST['Total6'], 2)} Page Number: {$_POST['PageNumber7']} Product Code: {$_POST['ProductCode7']} Product Description: {$_POST['Description7']} Price (£): {number_format($_POST['Price7'], 2)} Quantity: {$_POST['Quantity7']} Total: {number_format($_POST['Total7'], 2)} Page Number: {$_POST['PageNumber8']} Product Code: {$_POST['ProductCode8']} Product Description: {$_POST['Description8']} Price (£): {number_format($_POST['Price8'], 2)} Quantity: {$_POST['Quantity8']} Total: {number_format($_POST['Total8'], 2)} Page Number: {$_POST['PageNumber9']} Product Code: {$_POST['ProductCode9']} Product Description: {$_POST['Description9']} Price (£): {number_format($_POST['Price9'], 2)} Quantity: {$_POST['Quantity9']} Total: {number_format($_POST['Total9'], 2)} Page Number: {$_POST['PageNumber10']} Product Code: {$_POST['ProductCode10']} Product Description: {$_POST['Description10']} Price (£): {number_format($_POST['Price10'], 2)} Quantity: {$_POST['Quantity10']} Total: {number_format($_POST['Total10'], 2)} Grand Total: {number_format($_POST['GrandTotal'], 2)} MSG; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/plain;charset=iso-8859-1" . "\r\n"; $headers .= "From: " . "\r\n"; $headers .= "Reply-To: no-reply@" . $_SERVER['SERVER_NAME'] . "\r\n"; // Send $success = "/confirm.html"; if( mail('[email protected]', 'Online Order', $message, $headers) ) { header('Location: ' . $success); exit(); } ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service