Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php


Piet From South Africa wrote:
i have the following problem.

when i href like this

<a href="nextpage.php?name=$name">

and the name contains a & sign, it does not post it to the next page.

if the name is bed&breakfast it stops at bed.

Can anyone tell me how to do this.

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



Reply via email to