PHP Why does my html display as text?
I'm learning php and trying do to form that I mail to my email. This my code:
$to = "name@domain.com";
$subject = "Competition Entry - WIN A 2 NIGHT FAMILY PRICE";
$message = "Name: ".$name. "<br />" ."Surname: ".$surname.;
mail ($to, $subject, $message);
?>
When it sends to my email it display as: "Name: < br /> Surname: "
Why does my < br /> display as text and not as a break?
No comments:
Post a Comment