Click to See Complete Forum and Search --> : how can i get the full path
pelegk1
08-11-2003, 03:13 AM
of the page i am in including all data for example :
www.xxx.asp?x=1&ttt=4
and i want to show in my page :
www.xxx.asp?x=1&ttt=4
how do i do that?
10X:)
peleg
boymackman
08-11-2003, 04:12 AM
You just need to enter something like:
<%
'first lets find out where we are
CurrentURL = Request.ServerVariables("URL")
' now get the values of x and ttt
x = Request.QueryString("x")
ttt = Request.QueryString("ttt")
' or if it sent from a form
'x = Request.Form("x")
'ttt = Request.Form("ttt")
CurrentLocation = "www.xxx.com/" & CurrentURL & "?x=" & x & "&ttt="& ttt &"
Response.Write(CurrentLocation)
%>
Hope this helps if not post back a reply
pelegk1
08-11-2003, 04:20 AM
another way to get the full path like
http://forums.webdeveloper.com/showthread.php?s=&threadid=15151
withought doing all the work that u have done!
iknow that on client side its :
window.location
i dont remember on server side
and that's what i am looking for right know:)
pelegk1
08-11-2003, 04:52 AM
<% response.write "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") & "?" &Request.QueryString()%>