A
Anonymous
Guest
Hi!
Today I have a page with many forms, each form has some hidden fields, eg. order_id, price, etc.
Today the user has to pay each order one by one.
What I am trying to do is to make a list of checkboxes for the user so that the user only selects the wanted orders to pay, the checkboxes should then populate 2 or more hidden fields in different ways.
If the user checks 3 orders, let´s say orderID 45, 67 and 765 that have prices of 50, 78 and 732 then two hidden fields order_id should be populated with a list of orderID´s commaseparated list, like 45,67,765 and the price hidden field should be populated with the sum of the orders like 860 (the prices added).
How do I do this??
With regards
Hjortsberg
Today I have a page with many forms, each form has some hidden fields, eg. order_id, price, etc.
Today the user has to pay each order one by one.
What I am trying to do is to make a list of checkboxes for the user so that the user only selects the wanted orders to pay, the checkboxes should then populate 2 or more hidden fields in different ways.
If the user checks 3 orders, let´s say orderID 45, 67 and 765 that have prices of 50, 78 and 732 then two hidden fields order_id should be populated with a list of orderID´s commaseparated list, like 45,67,765 and the price hidden field should be populated with the sum of the orders like 860 (the prices added).
How do I do this??
With regards
Hjortsberg