Hi, I have one Code in my URL:
as:
localhost/project1/index.cfm?catID=1&siteName=http://www.sqlserver.com
I want to extract only:
how can i do that, i try using the listfunctions but no help.
Hi, I have one Code in my URL:
as:
localhost/project1/index.cfm?catID=1&siteName=http://www.sqlserver.com
I want to extract only:
how can i do that, i try using the listfunctions but no help.
I would assume the
url.sitename
should extract what you want.
Yep,
You can always see whats in the URL scope by cfdumping it like so:
<cfoutput><cfdump var="#URL#"></cfoutput>
on the target page.
You can check to see whats in the URL.sitename variable like so:
<cfoutput>#URL.sitename#</cfoutput>
better still tou can do some checking first to see if the variable exists and isn't empty:
<cfoutput>
<cfif isdefined('URL.sitename') AND #URL.sitename# NEQ "">
#URL.sitename#
</cfif>
</cfoutput>
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.