Menu
Hi I am trying to show a total value in my form which is going to be affected by the values of the checkboxes on my page. I have searched for scripts but the problem is that the number of checkboxes are dynamic.
For example:
foreach($row as $result):
<input type=”checkbox” name=”expensearr[]” value=”<?php echo $result[0]; ?>” checked>
endforeach;
These are my checkboxes which will have different values, I want to add these up and display them as a total value on the same page.
If you require any more info please let me know.
Any help would be greatly appreciated! ?