K0rrupt wrote:
> Could you show me an example? Pretty new to cf.
> I was thinking of having the link go to a process page
and thought of this
> code, but it doesn't work. Am i going into the write
direction or is it all
> wrong? I was thinking of having the link add the company
name, province and
> city they are in and have the process page determine
which folder is the
> correct one according to the URL params.
>
> <cfif IsDefined("URL.Province")>
> <cfset ThisPath = ExpandPath("menu")>
> <cfset ThisDirectory =
GetDirectoryFromPath(ThisPath)>
>
> <cfif URL.Province EQ ThisDirectory>
> <cflocation url="#ThisDirectory#" />
> </cfif>
> <cfelse>
> <cflocation url="../index.cfm" />
> <cfabort>
> </cfif>
>
Ok, that looks rather complex, but I am not sure what your
goal is here?
Are you building links or doing some type of redirect for
some reason?