Hi
After some playing around, I have the following code. I want variable 12 (which is switch in the query string) to become null ("" after being processed, but it wont. Why???
Cheers
James
After some playing around, I have the following code. I want variable 12 (which is switch in the query string) to become null ("" after being processed, but it wont. Why???
Code:
<%
Dim variable1, variable2, variable3, variable4, variable5, variable6, variable7, variable8, variable9, variable10, variable11, variable12, variablex, variabley, variablestring
variable1 = Request.QueryString("tfc")
variable2 = Request.QueryString("tfs")
variable3 = Request.QueryString("bc")
variable4 = Request.QueryString("txfc")
variable5 = Request.QueryString("txfs")
variable6 = Request.QueryString("lc")
variable7 = Pageref
variable8 = Pagerefold
If Request.QueryString("switch") = "off" then
Variable10 = "off"
ElseIf Request.QueryString("switch") = "on" then
Variable10 = "on"
ElseIf Request.QueryString("switch") = "" Then
Variable10 = ""
End If
If variable10 = "" then
'Do nothing
ElseIf variable10 = "on" Then
variablex = "on"
Else
Variablex = "off"
End If
variable12 = ""
variablestring = "?tfc=" & variable1 &"&tfs=" & variable2 & "&bc=" & variable3 & "&txfc=" & variable4 & "&txfs=" & variable5 & "&lc=" & variable6 & "&Pageref=" & variable7 & "&Pagerefold=" & variable8 & "&Access=" & variablex & "&test=" & variabley & "&Switch=" & variable12
%>
Cheers
James