Adding multiple checkbox values
From: ID10Terror (someone_at_somewhere.com)
Date: 11/02/04
- Next message: Stefan B Rusynko: "Re: I am receiving a System exception: access violation error"
- Previous message: racerboy: "Re: I am receiving a System exception: access violation error"
- Next in thread: Kevin Spencer: "Re: Adding multiple checkbox values"
- Reply: Kevin Spencer: "Re: Adding multiple checkbox values"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Nov 2004 21:42:05 -0800
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
- Next message: Stefan B Rusynko: "Re: I am receiving a System exception: access violation error"
- Previous message: racerboy: "Re: I am receiving a System exception: access violation error"
- Next in thread: Kevin Spencer: "Re: Adding multiple checkbox values"
- Reply: Kevin Spencer: "Re: Adding multiple checkbox values"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|