I have a bunch a values I would like to add together which are entered into a form. Right now, the form has 11 lines but it could get larger in the future. I can easily add
The values you need are posted from a form, right? If so, you could iterate through the keys in the $_POST variable that match your form field's generated names.