Is there any sort of validation on the form itself? I ran into this problem using a javascript validation library. It only recognized the "first" submit button and nothing I did could get the other one to show up. Then I removed the validation and presto. It worked.
-----Original Message----- From: Steve Sequenzia [mailto:[EMAIL PROTECTED] Sent: Sunday, August 05, 2007 5:59 PM To: CF-Talk Subject: One form with two submit buttons in <cflayoutarea> I have this little bit of code that I am testing with inside of a <cflayoutarea>: <cfform name="form1"> <cfinput name="sku" type="text"> <cfinput type="submit" name="cmd1" value="1"> <cfinput type="submit" name="cmd2" value="2"> </cfform> <cfif isDefined('cmd1')> <cfoutput>#cmd1#</cfoutput> </cfif> <cfif isDefined('cmd2')> <cfoutput>#cmd2#</cfoutput> </cfif> When inside the <cflayoutarea> and the form is submitted it always returns a value for cmd1 no matter which submit button is clicked to submit the form and no value for cmd2. See example: http://demo.thinksys.com/cf8/cflayout/ When not in the <cflayoutarea> it functions like I think it should. See Example: http://demo.thinksys.com/cf8/cflayout/1.cfm Anyone have any idea why. I am sure I am just confusing something because I am really not sure about a lot of the new CF8 stuff. Thanks in advance for any help. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285467 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4