All,
I've got a weird problem which should be easy to solve. I am passing a variable from another page. I am using the following code to capture the value of the variable:
strSurveyID = Request( "SurveyID" )
I successfully print the variable if I place it before the If statement which asks if the page has been submitted. This is the code that works:
strSQL = "'"& strSurveyID &"'"
response.write strSQL
If Request.ServerVariables("HTTP_METHOD"
= "POST" Then
But, when I try to use the variable inside the above if statment I am not able to print the variable. The page tells me there is no variable there. Such as doing this:
If Request.ServerVariables("HTTP_METHOD"
= "POST" Then
strSQL = "'"& strSurveyID &"'"
response.write strSQL
Could anyone help me on how could I use the variable I passed in inside this if statement?
Any help will be greatly appreciated,
Daniel Do you know the Chabad Lubavitch Sheliach in your area?
He is waiting for you!
I've got a weird problem which should be easy to solve. I am passing a variable from another page. I am using the following code to capture the value of the variable:
strSurveyID = Request( "SurveyID" )
I successfully print the variable if I place it before the If statement which asks if the page has been submitted. This is the code that works:
strSQL = "'"& strSurveyID &"'"
response.write strSQL
If Request.ServerVariables("HTTP_METHOD"
But, when I try to use the variable inside the above if statment I am not able to print the variable. The page tells me there is no variable there. Such as doing this:
If Request.ServerVariables("HTTP_METHOD"
strSQL = "'"& strSurveyID &"'"
response.write strSQL
Could anyone help me on how could I use the variable I passed in inside this if statement?
Any help will be greatly appreciated,
Daniel Do you know the Chabad Lubavitch Sheliach in your area?
He is waiting for you!