On 2005-08-27, "Shay" <[EMAIL PROTECTED]> 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

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

Reply via email to