On 2005-08-27, "Shay" <mastershay@xxxxxxxxxxx> wrote: > Hi, I'm having trouble getting & to work properly. I start with a URL > that has just & tags. I use str_replace to replace the & with &. Now > this works with URLs that I print as hyperlinks, but the & does not > print if I print the URL as a normal string. If I view the page source the > & 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> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php