| | |
a help in my url
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2008
Posts: 6
Reputation:
Solved Threads: 1
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:
http://www.sqlserver.com
how can i do that, i try using the listfunctions but no help.
as:
localhost/project1/index.cfm?catID=1&siteName=http://www.sqlserver.com
I want to extract only:
http://www.sqlserver.com
how can i do that, i try using the listfunctions but no help.
•
•
Join Date: Jan 2009
Posts: 20
Reputation:
Solved Threads: 1
Yep,
You can always see whats in the URL scope by cfdumping it like so:
on the target page.
You can check to see whats in the URL.sitename variable like so:
better still tou can do some checking first to see if the variable exists and isn't empty:
You can always see whats in the URL scope by cfdumping it like so:
ColdFusion Syntax (Toggle Plain Text)
<cfoutput><cfdump var="#URL#"></cfoutput>
You can check to see whats in the URL.sitename variable like so:
ColdFusion Syntax (Toggle Plain Text)
<cfoutput>#URL.sitename#</cfoutput>
ColdFusion Syntax (Toggle Plain Text)
<cfoutput> <cfif isdefined('URL.sitename') AND #URL.sitename# NEQ ""> #URL.sitename# </cfif> </cfoutput>
Last edited by jedimatt; Feb 1st, 2009 at 10:13 am. Reason: added a some more code examples
![]() |
Similar Threads
- Save Time and Effort in Typing URL Addresses (Windows tips 'n' tweaks)
- How to keep new URL's on top?? (Web Browsers)
- URL changing (Linux Servers and Apache)
- IE Cache not deleting a URL (Web Browsers)
- URL Changes!! (Web Browsers)
- IE URL Suffix (Web Browsers)
- url redirects to yahoo.com (Windows NT / 2000 / XP)
Other Threads in the ColdFusion Forum
- Previous Thread: <CFQUERY> and INSERT problem
- Next Thread: query cfoutput help
Views: 1163 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ColdFusion





