I have a clear button that I want to tie into some php coding. how do I detect if the clear button is pressed. When the user press clear, i\'m going to have it update a sql
surprisingly, the formaction attribute was not covered. you can use it like so
of course, this does not use javascript and has good browser support. this route (no pun intended) has the added benefit of not requiring extra if / then statements on the server since the same route won't be used for two different things
reference https://css-tricks.com/separate-form-submit-buttons-go-different-urls/