Re: question on parameter specification in href tag

From: Date: Fri, 12 Dec 2008 19:36:32 +0000
Subject: Re: question on parameter specification in href tag
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284561@lists.php.net to get a copy of this message
On Thu, 2008-12-11 at 11:30 +0100, Xaver Thum wrote: > 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 urlencode() Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#284561) next »