Quote:
quote:Originally posted by Mantis
<p>Testing color</p><br>
One of the 0 as gone.. so I get green instead of red.. (PHP bug?)
|
You need to show us the COMPLETE php line entry for the above example. What I mean by that is you have presented a line that is almost completely NO php (with the exception of escaping the double quotes.)
For example :
the line you presented as it should be (perhaps) in PHP
echo "<p>Testing color</p><br>";
or
echo '<p>Testing color</p><br>';
the line you presented as it should be (perhaps) in HTML (without PHP)
<p>Testing color</p><br>
or
<p>Testing color</p><br>
or
<p>Testing color</p><br>
While experimenting with this (to make sure MY syntax was right), I found out that YOU are likely using JUST
<p>Testing color</p><br> as PLAIN HTML which indeed does give GREEN text.
The most likely reason is that, generally speaking, html will IGNORE or do a BEST GUESS on things that it doesn't quite understand. Since presenting a color (in html) as
\"#FF000\" is NOT standard HTML format, it's best guess was/is apparently GREEN.
Paul Gardner
------------------
PHP-LIVE help
Via Web @
http://www.mnetweb.co.uk/irc
Via IRC Client pgardner.net:6667
room #PHP