Click to See Complete Forum and Search --> : Request Query Variables Issue URL


theflyingminst
01-09-2009, 02:09 AM
Hi, I'm wondering why this won't write properly to the url. The equal sign after ID won't kick over in the post submit url. It writes like this: "ID%3D0002&"..

That's not even the ID number. Weird. Anyone know a workaround for this? thanks.

Code:

<input name="sischecked" value="ID=<%response.write ID%>" type="checkbox">

Kuriyama
01-09-2009, 10:35 AM
it's getting URL Encoded.

http://www.w3schools.com/TAGS/ref_urlencode.asp

this will undo it.

''''''''''''''''''''
' URLDecode function
''''''''''''''''''''
Function URLDecode(str)
str = Replace(str, "+", " ")
For i = 1 To Len(str)
sT = Mid(str, i, 1)
If sT = "%" Then
If i+2 < Len(str) Then
sR = sR & _
Chr(CLng("&H" & Mid(str, i+1, 2)))
i = i+2
End If
Else
sR = sR & sT
End If
Next
URLDecode = sR
End Function

theflyingminst
01-09-2009, 12:53 PM
Oh sweet, thanks so much for the help!