I have Four Buttons in my Html Form i want to know how the server is going to identify which Button is Pressed???
posted 15 years ago
You give each button a name and a value, and they are passed as query parameters just like other form fields. Note that one common trick is to have multiple SUBMIT buttons - all with the same name, but different values - and use them to control what the servlet does with the form data. eg. The HTML contains: