View Full Version : PHP string formatting
Greenflame
20th May 2005, 04:28 AM
I am having troubles with escaping quotes in a string var containing
HTML.Anyone know a fix?:
$thelin = "<p class=\"banz\">Link:<a href="".$daadd."">".$daname."</a>&nbsp;&nbsp;&nbspSubmitted By:".$userdata['username']";
orionnt
17th August 2005, 05:37 AM
You have to make sure all the quotes are actually escaped
$thelin = "<p class=\"banz\">Link:<a href=\"".$daadd."\">".$daname."</a>&nbsp;&nbsp;&nbspSubmitted By:".$userdata['username']";
Dreamweavers helps bunches with PHP code :)
Greenflame
17th August 2005, 05:05 PM
Yea, I fixed this long ago. It was when I was coding the A0tu
Portal. I'm writing a XML/XUL/Javascript Mozilla Extension right
now that displays the HTTP and FTP Packet contents of
the URL requested.
Coding Mozilla Extensions is pretty fun!
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.