question on parameter specification in href tag
| From: | Xaver Thum | Date: | Thu, 11 Dec 2008 10:30:41 +0000 |
| Subject: | question on parameter specification in href tag | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-284560@lists.php.net to get a copy of this message | ||
Hi,
I want to set a link like
<a href="http://www.anyurl.com?mypar=17&color=red">
...
into my HTML file; that works fine.
But if I specify a hex color like #CC0000 instead of "red",
<a href="http://www.anyurl.com?mypar=17&color=#CC0000">
...
the color is ignored (probably because # starts a PHP comment).
Is there any workaround for this problem ?
Thanks and Regards
Xaver