I am trying to make a menu to assign contact lenses to patients. Every lens-option has a div with info about the lens, a range-input for strength and a submit button.
I would like to assign the ID of the lens to the patient in MySQL when the submit button of the specific lens is pressed. How can i handle this without having to copy-paste the if(isset($_POST[submitbutton#]) for every lens?
I am currently considering a switch-statement.
Any help is much appreciated.
Aucun commentaire:
Enregistrer un commentaire