Plenty of ways to do that, yes. For clear reading you might do:

<cfif a EQ 1>
 <cfset sAction = "action1">
<cfelse>
 <cfset sAction = "action2">
</cfif>

<form action="#sAction#' method="post">...

Or you can do it inline (lookup the iif() function):

<form action="#iif(a EQ 1, DE('action1'), DE('action2) )# method="post">...


Dominic


On 17/10/2007, erik tom <[EMAIL PROTECTED]> wrote:
>
> >you can call the method right from the form.
> >
> ><form action="myCFC.cfc?method=myMethodName" ... >
> >
> >
> >>
> I know that I can call the methods right from the form but can I do
> something like this <form action=<cfif
> insert>'method1<cfelse>method2</cfif>'
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291373
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to