I have a form that looks like this.
<form action="index.php" method="post">
<select name="dropdownOption">
<option value="First Choice +200">First Choice</option>
<option value="Second Choice +300">Second Choice</option>
</select>
<p><input type="checkbox" value="Rocket +100"> Rocket</p>
What I want to do is loop through every value sent in the _POST and then sum up every number after the '+' sign into a variable in the index.php file.
So for example if they chose the 'Second Choice' and ticked the 'Rocket' Checkbox it should add up to 400 (300+100).
In this example there is only two different options but in the final application there will be 20-30 different things that can vary which is why looping is necessary.
Also How can I loop through every element that is not hidden (so exclude hidden form elements).