Looks like you're going to need more data in the checkbox.  As you're
going to need the ID as well i'd leave that as is.  But you can add an
extra attribute to help with this calculation.

<input name="invoiveID[]" value="<?=$invoiceID?>" price="<?=
$invoicePrice?>" type="checkbox" />

Javascript has no problem accessing what could be considered a custom
attribute.


On Oct 5, 6:06 pm, lesmith <[EMAIL PROTECTED]> wrote:
> Hello Peeps.
>
> Hope you can advice me on how to do this. Im new to prototype so
> please be gentle.
>
> I currently have a form where clients can see a list of invoices. They
> can select a set of invoices via checkbox and hit the pay button thus
> sending them to a page which gives a total.
>
> I would now like to make this better by giving them a value before
> they hit submit.
>
> Currenty this is an example of my checkbox data.
>
> <input name="invoiveID[]" value="<?=$invoiceID?>" type="checkbox" />
>
> How can I make it so when they select a check box they are given a
> running total so they know the total cost before submitting.
>
> I have seen a few example where you can add checkbox data but my
> values contain invoiceID.
>
> Hope you can advice.
>
> Thank you in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to