> > I have seen some people just do it off the value of the Submit button. > Although kind of sucks when they change the value in the button but forget > to change their switch/case or if/else on the processing end of things.
You can do that, but if your user hits return to submit the form, the submit button name will not be posted. While you can't hit return to submit all forms, I think it preferable to use one technique throughout your code. Here is a demo template, run it by hitting the submit button and then again by hitting return after entering some text (if it works, try it in another browswer, I think this is a broswer issue). <cfif StructKeyExists(form,"myButton")> <h1>Hello world</h1> </cfif> <form action="" method="post"> <input name="foo" value="bar"/> <input type="submit" value="Go go gadget legs" name="myButton" /> </form> The code will do what you expect in Firefox but not in IE. Dom -- Blog it up: http://fusion.dominicwatson.co.uk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301007 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

