Problem printing html tags

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
Jay

Post by Jay » Wed Nov 06, 2002 3:32 am

You have to use single quotes, or if you want to use double quotes, backslash them (so they're not interpretted literally)

eg:
print "<table width='1'>\n";
or
print "<table width=\"1\">\n";
or
print '<table width="1">'."\n";

You can't mix the same quote style unless you escape the ones you want interpretted non-literally, and there is a difference between using ' and ".

Post Reply

Who is online

Users browsing this forum: vs224 and 1 guest