A MUCH cleaner way of doing it is to just cfinclude the appropriate file 
instead of doing a cflocation. This way no variable have to be passed to 
another template.
Al
A1webs.com



> > <cflocation
> >
>url="http://#attributes.serverip#/mydir/mytemplate.cfm?username=#attributes.
> > username#<cfif
> > #isDefined("attributes.dsn1")#>&dsn1=#attributes.dsn1#<cfelseif
> > #isDefined("attributes.dsn2")#>&dsn2=#attributes.dsn2#<cfelseif
> > #isDefined("attributes.dsn3")#>&dsn3=#attributes.dsn3#</cfif>">
> > -------------------------------
> >
> > ------------url produced from above code-------------------
> >
>http://serverip/mydir/mytemplate.cfm?username=user23<cfif%20YES>&dsn1=blah1<
> > cfelseif%20YES>&dsn2=blah2<cfelseif%20YES>&dsn3=blah3</cfif>
> > -----------------------------------------------------------
> > (serverip was edited for this post)
> >
> > --
> > Stephenie Hamilton
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to