AdobeStock_455007340

Working with Multiple Submit Buttons

Home » Working with Multiple Submit Buttons

HTML forms usually have a single submit button, but you can actually create as many submit buttons as you’d like (for example, one for “Edit” and one for “Delete”). No matter which button is clicked, the same form will be submitted to the same ACTION page. So how will you know which button was clicked? The trick is to NAME the buttons using the same name for each. In the ACTION page you can then access the button name to obtain the button VALUE (the button text). (Applies to: ColdFusion All)

Leave a Reply