Home All Groups Group Topic Archive Search About

Adding multiple checkbox values

Author
2 Nov 2004 5:42 AM
ID10Terror

Hi:

I was wondering if it is possible to add the value of checkboxes.

<INPUT type=checkbox name=test01 CHECKED value=1>
<INPUT type=checkbox name=test01 CHECKED value=2>
<INPUT type=checkbox name=test01 CHECKED value=4>
<INPUT type=checkbox name=test01 CHECKED value=8>

If the user clicked the second (value=2) and third (value=4) check boxes,
when the submit button is clicked, the sum of all "test01" boxes is sent.
In this example, test01=6 would be sent.  Is this possible or do I have to
use javascript or something else.  I need to avoid the test01=2, 4 I am
currently getting.

Any and all help would greatly be appreciated.


Thanks
Author
2 Nov 2004 2:00 PM
Kevin Spencer
[Message not available]

Bookmark and Share