Re: &

From: Date: Sun, 28 Aug 2005 00:54:46 +0000
Subject: Re: &
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-40162@lists.php.net to get a copy of this message
On 2005-08-27, "Shay" <mastershay@comcast.net> wrote: > Hi, I'm having trouble getting &amp; to work properly. I start with a URL > that has just & tags. I use str_replace to replace the & with &amp;. Now > this works with URLs that I print as hyperlinks, but the &amp; does not > print if I print the URL as a normal string. If I view the page source the > &amp; is there, but not on the page itself. Anyone know how to fix this? If you generate an URL you should use http://www.php.net/urlencode. If you want to insert that URL in a html page you should use http://www.php.net/htmlentities. -- Met vriendelijke groeten, Tim Van Wassenhove <http://timvw.madoka.be>

« previous php.db (#40162) next »