Quote from php manual
$POST
$HTTP_POST_VARS [deprecated]
So you might as well start by replacing http_post_vars with $POST.
TheoGB;10958478 wrote: You've used " (...) but then used them to break the string for the variable too.
Actually he hasn't, but he might have thought he did so. Once he cleans up his code to be syntactically correct, part of his message will look like
<br>"."
where <br> of course would be replaced by a line break by an html user agent.
Easy to track down the actual problem if you change your very long one liner to something like
$message = <<<EOF
<html><body bgcolor="#DCEEFC">
<b>
$_POST['username'];
</b>
...
EOF
Now you won't have to look all over the place to find out where things go wrong. Once done with that, proceed to the heredoc manual and it will tell you a little something about embedding variables in heredoc strings.