Re: &

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2005-08-27, "Shay" <mastershay@xxxxxxxxxxx> 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>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux