Search code examples
conditional-statementssubmission

HTML: Submit multiple forms with one submissions ONLY IF that form is checked


So I have a page with multiple input forms; is it possible to submit all these forms AT THE SAME TIME with one submit button? Also, each form has its own checkbox, and I want it so that if it is checked, it will NOT submit the data within that form to the PHP script. If the checkbox IS checked, I want it to submit the data within that form. Is this possible?


Solution

  • You could use AJAX or join all forms in one, which u will submit.