Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question...

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi,

I have an asp page that takes the parameters from the form and use them to retrieve the information for the SQL talbe.

So, in my code I have:

transit=Request.Form("transit")
month=Request.Form("months")
year=Request.Form("years")

get_params = "select sequence, bottom, Hi_Level from transits where transit_no = " & transit & " and Rec_Month = " & month & " And Rec_Year = " & Year

My retrieved values are hyperlinked:

response.write(&quot;<a href='MyAspPage.asp?transit=&quot;&x&&quot;&months=&quot;&Month&&quot;&years=&quot;&Years&&quot;'>&quot;)

So that I want to open again this asp page, but instead of parameters from the form, I pass my own parameters.

Would that work? In the beginning of the code I assign the values from the form, but now I would need to assign the passed values to the variables.

Please advise me on how I could run the same page again and use the parameters passed.

I'd appreciate any comments.

Thanks.



 
[tt] Have you tried creating variable and using them?

<%=Tony%>
 
You could try this right at the begin of you ASP code

If Request.Form(&quot;transit&quot;) Then
transit = Request.queryString(&quot;transit&quot;)
Else
transit = Request.Form(&quot;transit&quot;)
End If
 
Thanks,
but what is being checked in

If Request.Form(&quot;transit&quot;)?

I tried to run the code, the page wouldn't be displayed.
 
sorry

If Request.Form(&quot;transit&quot;) = &quot;&quot; Then
transit = Request.queryString(&quot;transit&quot;)
Else
transit = Request.Form(&quot;transit&quot;)
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top