I have a form of multiple checkboxes with each corresponding numeric values. I want the PHP to show the sum of the values from only the checked checkboxes. If checkbox 1 has a value of 80; checkbox 2 has 21; and checkbox three has 15; then as an example, if the user only checked checkboxes 3 and 2 then the PHP must output 36.
Here's what I have so far, concerning the HTML and CSS codes https://jsfiddle.net/nerdfighter/tmz1ymeL/4/ (jsFiddle) Any help would be appreciated! Thanks
<form action="index.php" method="get"/>
(just including this so that I can link my jsFiddle--don't mind)
Aucun commentaire:
Enregistrer un commentaire