You will need to have a different name, and then check that value. Since your buttons both have the same name, the value for both will be in the form scope as you have seen.
I always just do a regular button, and change the form action via Javascript. Cheers, Rob On Wed, Apr 28, 2010 at 8:24 PM, John Pullam <jpul...@mcleansystems.com>wrote: > > I have seen several examples of using multiple form buttons on a single > form. The idea is that you can get the value of the respective form variable > when you are posted and then take the appropriate action. > > But I'm getting odd results. Instead of getting a single value, I get both > values every time, and the examples I've seen suggest that you should only > get the one that was pressed. > > Can anyone tell me what I'm doing wrong or what I need to do to get a > single value? My code for the buttons is as follows: > > <input name="Choose" value="Change" type="submit" class="EditButton" /> > <input name="Choose" value="Full" type="submit" class="EditButton" /> > > When I CFDump it, FORM.Choose is Change,Full > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333216 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm