[Proto-Scripty] Re: Form Checkbox Count

2008-10-07 Thread lesmith
Chaps Thanks for the feedback. Once I got a working example I will post to share if peeps need it in the future. Thank you again. Nice work On Oct 7, 9:27 am, ColinFine [EMAIL PROTECTED] wrote: On Oct 6, 12:06 am, lesmith [EMAIL PROTECTED] wrote: The other replies have all suggested

[Proto-Scripty] Re: Form Checkbox Count

2008-10-06 Thread ColinFine
On Oct 6, 12:06 am, 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

[Proto-Scripty] Re: Form Checkbox Count

2008-10-06 Thread Matt Foster
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

[Proto-Scripty] Re: Form Checkbox Count

2008-10-06 Thread Walter Lee Davis
On Oct 6, 2008, at 4:08 PM, Matt Foster wrote: 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=?=

[Proto-Scripty] Re: Form Checkbox Count

2008-10-06 Thread Brian Williams
just do input name=invoiceID[?=$invoiceID?] value=?=$invoicePrice? type=checkbox / like it was meant php will recognize it as an array and parse it ( $_POST['invoiceID'] ) just fine if for some strange reason you can't - do a for loop over $_POST and use a regex On Mon, Oct 6, 2008 at 5:30