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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Query String Variables from another page.

Status
Not open for further replies.

zal

Programmer
Jun 8, 2002
10
GB
Hi,

Could you guide or assist and tell me if the following is possible, if yes, what would be the best approach.

Overview
========

# MYASP_PAGE on our server with form and action to call EXTPAGE on another server.

# EXTPAGE on an external server, reads query string passed from MYASP and processes.
# EXTRESULTPAGE on same server as EXTPAGE. EXTRESULTPAGE shows the result after EXTPAGE processed the query string. This page has a form with a button, after the button is pressed the query string is sent back to MYASP_PAGE.

OBJECTIVE: Is to obtain the query string from RESULTPAGE without pressing the button i.e. automate the process.

Any ideas or thoughts.

Please do let me know if you are unclear on what I am asking.

Thank You.

Zal

 
It sounds like you don't even want to see EXTRESULTPAGE in which case you could do all the processing on EXTPAGE. But...If you want to do it that way instead of a form with a button, use a form with only hidden controls. Example:

Top of Page - get everything that you want from EXTPAGE and do whatever processing you need to do.
Stuff whatever is valuable to you into variables.
Create a form (you did say querystring).
<form name=&quot;frm1&quot; method=&quot;get&quot; action=&quot;MYASPPageSomeWhereElse&quot;>
<input type=&quot;hidden&quot; name=&quot;variable1&quot; value=&quot;<%=variable1%>&quot;>
<input type=&quot;hidden&quot; name=&quot;variable2&quot; value=&quot;<%=variable2%>&quot;>
</form>
<script language=&quot;vbscript&quot;>
frm1.Submit()
</script>
 
Veep,

I shoud have mentioned... that I have no control over the pages on the other server.

Please bear in mind EXTPAGE does that processing, but the result is in EXTRESULTPAGE.

If you look at the link below.


Click the Next Step button and you will be redirect to the Yahoo site. If you see in the address bar you will see query string is passed and I'm interested in variables like ecode and planned.

I hope this is clear.

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top