Click to See Complete Forum and Search --> : URLencode


jrthor2
07-16-2003, 12:57 PM
I have the following to serve as a link to an anchor on my page, but it is not quite working:

subject = rs("SUBJECT")
link = Server.URLencode(subject)
Response.Write("<a href=/events/#" & link & ">" & subject & "</a><br>")

the result gives me a link that has "+" as the space character, but when you click the link, it does not take you to the correct portion of that page because the anchor on the page has spaces, and not the + sign. I tried doing:

link = Replace(link, "+", "%20")

but that also did not work???