[thelist] PHP encoding &s in a URL

Kelly Hallman khallman at wrack.org
Mon Sep 1 13:14:43 CDT 2003


On Mon, 1 Sep 2003, fstorr wrote:
> <a href="results?q=D&T">D&T</a>
> to pull the required link from my db (the term it should select is D&T).
> What's the correct way to encode that sucker?!

urlencode("D&T") == "D%26T"
which is correct.

Why it's not finding the right record is proably another matter.

-- 
Kelly Hallman
http://wrack.org/




More information about the thelist mailing list