Page is a not externally linkable
- WebmasterWorld
-- New To Web Development
---- Any Coldfusion Experts out there? I have a question


LifeinAsia - 3:47 pm on Apr 9, 2010 (gmt 0)


this is not a current language

I (and thousands of other CF coders) certainly take exception to that! But I may decide to help anyway. :)

Not exactly sure what you mean by "the URL that is in the web browser." For example, if the current page is http://www.example.com/somepage.cfm
The following variables would be available to you:
CGI.Server_Name = www.examples.com
CGI.Script_Name = /somepage.cfm

So to set the variable ThisServerName, you would use:
<cfset ThisServerName = CGI.Server_Name>


Thread source:: http://www.webmasterworld.com/new_web_development/4112998.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com