Simple web form in PHP
To add to Quill's answer, use heredoc whenever you want to use multiline strings.

$contents = &lt;&lt;&lt;CON
New order!

Name: {$name}
Phone number: {$phone}
City: {$city}
CON;

$content = htmlspecialchars($contents);


EDIT

Why &amp; how it improves your code,


Much cleaners and improves readability  
When you need double quotes inside the string you don't need to escape them
You don't have to worry about which characters to use when you need a line break.


A common use of this is when you write SQL queries, HTML or Email message bodies in your application. Basically multiline strings.