Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2004, 03:38 PM
Authorized User
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complete URL of displaying page....

Hi:
    I am developing a site that have the option to SEND THIS PAGE TO FRIENDS. When user click on this button, the complete URL of the displaying page should be mail to his friends.


    So i require to get the full URL of the displaying page.
    Any idea or script?

Burhan

 
Old April 27th, 2004, 01:16 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%
response.write("http://" & request.servervariables("HTTP_HOST") & request("URL"))
' OR
response.write("http://" & request.servervariables("HTTP_HOST") & request.servervariables("SCRIPT_NAME"))
%>

 
Old April 27th, 2004, 12:42 PM
Authorized User
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by U.N.C.L.E.
 <%
response.write("http://" & request.servervariables("HTTP_HOST") & request("URL"))
' OR
response.write("http://" & request.servervariables("HTTP_HOST") & request.servervariables("SCRIPT_NAME"))
%>

thanks U.N.C.L.E , i was needed complete url including query string values.

I overcome this by your help and adding QUERY_STRING variable.

Burhan






Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Web page dilipv General .NET 0 March 5th, 2008 05:39 AM
Page and URL Structure [email protected] ASP.NET 2.0 Professional 2 October 7th, 2007 07:56 AM
How to hide Extension of Page in URL ? savan_thakkar ASP.NET 1.0 and 1.1 Professional 9 February 24th, 2006 10:31 AM
Complete URL safin ASP.NET 2.0 Professional 0 February 2nd, 2006 02:36 PM
Displaying Url from database in Status Bar ntriqetev Classic ASP Basics 1 December 17th, 2003 09:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.