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


obenjamin
01-15-2006, 12:45 PM
Hi guys,
I am having problems with my aherf I want to pass in several parameters and get them back using Request.QueryString(). The problem I am having is that when it encounters a space it stops writing the Aherf Example below:
<a href=ShowWork.asp?" & "Fname=" & tempFname & "&Subject=" & tempSubject & "&TDate=" & tempDate & ">"
Anyone know how I can fix this problem?
Thank you,
Obenjamin

russell_g_1
01-15-2006, 12:52 PM
use quotes and server.urlencode
response.write "<a href=""ShowWork.asp?Fname=" & server.urlencode(tempFname) & "&Subject=" & server.urlencode(tempSubject) & "&TDate=" & server.urlencode(tempDate) & "">"

obenjamin
01-15-2006, 05:29 PM
Thank you that worked perfectly and was exactly what i was looking for.