I tried to make my second ever php file but when I received the emails in testing it the new line \n; didn't work can anyone explain why? John.
the file is located at <http://www.jccmedia.org/thanks.php>
the php has the following php code:
<?php
$subject = "Contact Me! Form Results";
$to_address = "Support <support@jccmedia.org>";
$msg = "Your Name: $Contact\n";
$msg .= "Your Address Line 1: $Address1\n";
$msg .= "Your Address Line 2: $Address2\n";
$msg .= "Your Address Line 3: $Address3\n";
$msg .= "Your City: $City\n";
$msg .= "Your PostCode/Zip: $PostCode\n";
$msg .= "Your Country: $Country\n";
$msg .= "Your Phone No: $Phone\n";
$msg .= "Your Fax No: $Fax\n";
$msg .= "Your Email: $EMail\n\n";
$msg .= "Can you help me designing my own website: $with_own_website\n";
$msg .= "I would like you to design a website for me: $you_to_designr\n";
$msg .= "I would like to upgrade an existing website: $upgrade_existing\n\n";
$msg .= "Personal Use: $Pers\n";
$msg .= "Business: $Bus\n";
$msg .= "Education: $Edu\n";
$msg .= "Charitable: $Char\n\n";
$msg .= "Other details: $Info\n";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $Contact <$EMail>\r\n";
$headers .= "Cc: $Contact <$EMail>\r\n";
mail($to_address, $subject, $msg, $headers);
?>
</body>
</html>
Is there a problem in the header code as I have never tried it before?