Common misconception:
<cfapplication...> must reside in Application.cfm

<cfapplication> tag can reside anywhere.  Most people do use it in the
application.cfm page.  If you want something to happen before the
<cfapplication> tag is executed in the application.cfm, just put the
code before the <cfapplication> in your application.cfm.

Example application.cfm:

<cfif isDefined('form.cfid') and not isDefined('url.cfid')>
<cfset url.cfid = form.cfid>
</cfif>
<cfif isDefined('form.cftoken') and not isDefined('url.cftoken')>
<cfset url.cftoken = form.cftoken>
</cfif>

<cfapplication name="something"....>

John Burns

-----Original Message-----
From: stylo stylo [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 11:00 AM
To: CF-Talk
Subject: Re: form.cfid ignored. Why?

>No, just do (not tested)

I don't see how that does it. The application page is called first, and
it has the cfapplication tag in it, so already done by the time you
start the page.

>But do you have control over the sending page (form)?

No, coming from another site
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to