With multiple submit buttons, only the name and value of the one clicked gets sent in form.fieldnames:

<form action="foo.cfm">
<input type="text" name="blah">
<br />
<input type="submit" name="actionA" value="Submit A">
&nbsp;
<input type="submit" name="actionB" value="Submit B">
&nbsp;
<input type="submit" name="actionC" value="Submit C">
</form>

<!--- foo.cfm --->
<cfif IsDefined("form.actionA")>
        Action A stuff
</cfif>
<cfif IsDefined("form.actionB")>
        Action B stuff
</cfif>
<cfif IsDefined("form.actionC")>
        Action C stuff
</cfif>

HTH,

Adrian J. Moreno
i Know Kung Foo Consulting / Factors of i, Inc.
http://iKnowKungFoo.com / http://FactorsOfi.com

Kelly, Joe wrote:

It's the old unanswered "nested forms" question... Because we can't nest forms, but we can add multiple submit buttons, how
do we pass the value of the submit button to the form processing
template? This is a CF question!! Not PHP, ASP or .NET!!
Thanks,
Joe Kelly

----------------------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm





Reply via email to