Discussion Locked

ASP - submit querystring - HELP!!

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am a frustrated ASP programmer, and have the following problem: (with my 'target page')

My main page passes a variable to the target page, successfully, as the first condition evaluates as 'true':
If Request.ServerVariables("QUERY_STRING") <> "" Then ......
I then have a [GET DETAIL], i.e. Submit button on this target page, which MUST take the same variable and pass it to the code to get the detail...I can't figure out how to do this, and the reason is, that if I process both the summary AND the detail, it will take a while, so I want to give the user the choice to generate the detail....So I need something like:
ELSE IF Request.ServerVariables("QUERY_STRING") condition "?" Then ..... Get Detail Code, passing the variable to this second generation of code? I hope I explained this clearly...Please HELP!! TIA

4 replies

by steved

If I understand correctly, you have something like this:

<%
If Request.QueryString <> "" Then
%>

<%
End If
%>

All you have to do is add a line or lines to store the QueryString value(s) in hidden variables in the form. Then they'll be passed to the detail page. After the

by steved

P.S.
As you probably noticed, Request.QueryString is easier notation than Request.ServerVariables("QUERY_STRING"), plus it gives you access to the VBScript collection of name/value pairs within the string.

This discussion is closed to new replies.