How is it possible for me to have multiple Submit buttons on a form that act slightly differently?
For example, 1 submit button will have a value of "save", and that button will be clicked when the user wants the info. Here, I would like to trigger a JS function checkRequired() that would check if all mandatory fields are filled in, if they aren't, it will return false. To do this I have my checkRequired() under my form onSubmit.
The second submit button I need to have will be called "Upgrade Package". Here I need to get something from the database, so I need to post the already entered info by the user, but I don't want to checkRequired() because most likely not all information will be entered. The upgrade, as I mentioned need to get some info from the db, and load a different page.
As well, both submits need to go to a different URL, for example, index.php?action=save and index.php?action=upgrade
An alternate way I was thinking if it is possible to make both submit buttons as regular buttons, and have a function trigger the actual submission/posting.