Guides
Comprehensive guides for cloud best practices and architecture.

Two Submit Buttons in One Form — How to Know Which Was Clicked
Having two submit buttons in one HTML form is common — for example, “Save as Draft” and “Publish”. But how do you determine which button the user clicked once the form reaches your server? This guide gives you the simplest, most reliable, cross-language patterns to detect the correct submit button using HTML and server-side logic.
Stephen Ndegwa
·