Problem printing html tags

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests