Hello.
My webpage generates dynamic input fields that have the same name. It depends on how many records were found in the database.
I am trying to figure out how to add all the values from the fileds with the same name.
Example: the user could enter 1, 2 and 3 in the same name fields. I would like to get 6 as a sum.
<input name="myNumberField" type="text">
<input name="myNumberField" type="text">
<input name="myNumberField" type="text">
Thanks in advance for help.
My webpage generates dynamic input fields that have the same name. It depends on how many records were found in the database.
I am trying to figure out how to add all the values from the fileds with the same name.
Example: the user could enter 1, 2 and 3 in the same name fields. I would like to get 6 as a sum.
<input name="myNumberField" type="text">
<input name="myNumberField" type="text">
<input name="myNumberField" type="text">
Thanks in advance for help.