Problem printing html tags

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply

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)

print "<table width='1'>\n";
print "<table width=\"1\">\n";
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: No registered users and 3 guests