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!

collect the address / link

Status
Not open for further replies.

welshone

Programmer
Jul 30, 2001
414
GB
hello all,
I am passing parameters from one page to another using "post", I was wandering, is it possible to display what the address would be, so I can collect this for logging purposes ?

 
explain what you mean by: "what the address would be".

Do you mean:
i.e. Page A submits to Page B and on Page B you want to know what the address of Page A was. If so then send a hidden variable.
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;RefAdd&quot; VALUE=&quot;PageA&quot;>


Kris
- All things are possible except skiing through a revolving door.
 
hi Kris.,thanks for your response.

what I want is this :

I have a page called search.asp

When to user clicks on a button it passes 2 parameters from this page to searchRes.asp then displays the results.

when it passes the params the address will look like :

http:/localhost/search/searchRes.asp?ID=123&name=welsh

what I am asking is can I get the address bar address, and then response.write it on the screen.

so it will say,
the page you are viewing is http:/localhost/search/searchRes.asp?ID=123&name=welsh

?
 
sounds like a javascript type thing.

Kris
- You will always find something in the last place you look.
 
I've now worked it out, I'm just using :

Request.ServerVariables(&quot;URL&quot;) and then also adding the parameters to the end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top