Easy (?) PHP styling issue

Easy (?) PHP styling issue
0

#1

Hi, I’ve been trying to style a php echo for a mail script but it always prints the actual <div class""> tag instead of recognizing it as an actual div. I’ve tried it with p, h and div tags but it always prints the entire thing.

It currently looks like this: echo “< div class=‘echo’>”, $thanks, "< /div> ";

I’ve also tried getting rid of the $thanks and just echoing the actual text, so it’d look like this: echo “< div class=‘echo’> Thank you. We’ll get in touch soon < /div>”; but that doesn’t seem to work either.

Am I doing something stupid or is there really no way of getting around this? Thanks!


#2

Your php looks fine. But what about that space after each <?