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

Check url for source

Status
Not open for further replies.

RadioX

IS-IT--Management
May 15, 2001
145
US
I want to be able to check my url and if it containes index.cfm or just a path then do one thing and if it contains a certain file (e.g. house.cfm) then do another.

How would I start to go about doing this.

Thanks
 
I do this all the time. very helpful when you include files or use your application.cfm file to do user login's
Code:
<cfif findNoCase("index.cfm",cgi.SCRIPT_NAME)>
	do index stuff
</cfif>
<cfif findNoCase("house.cfm",cgi.SCRIPT_NAME)>
	do home stuff
</cfif>

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top