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

getting url 1

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

Is there any method in javascript/vbscript using which I can get the URL from address bar.
When user clicks on "Save this URL into Database" I need to store this URL into database.

Thanks
 
Dilip, this will do the trick for you my friend :) :

<% ThisURL = &quot; & Request.ServerVariables(&quot;SERVER_NAME&quot;) & request.ServerVariables(&quot;PATH_INFO&quot;) %>

<%= ThisURL %>

Hope this helps...



<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top