Instead of using the echo statement, you can always use the ?> <? tags to output HTML. This way you don't have to worry about escaping quotes, and you will get HTML syntax coloring in your editor.
Pimptastic's example of double vs single quotes is good. Double quotes will resolve variables to their values, single quotes will not.
For example:
Code: Select all
if (mail($recipient,$subject,$message,$headers))
{
?>
<b>Thank You <?=$Title?> <?=$FirstName?> <?=$Lastname?></p>
<a href="www.sitename.com/english/thank_you.html">Click Here</b>
<?
} else {
?>
<a href="www.sitename.com/english/thank_you.html">Back</a>
<?
}
?>
It's probably not the best or most attractive method, but it does work. I use it when I need to output large blocks of HTML, mostly because of the HTML syntax coloring thing.