Getting total in a table

Hi all!

I have a .php webpage with a table with a list of elements, one per row.
Each of these elements has a price, also showed in the table.
Each line of the table, it is, one element with one price can be selected or not with a checkbox in every row.
I want to have a total price of all elements selected.

Could you please tell me how to do this?

Thanks a lot!!!

Do you want the total to update automatically when the user selects/deselects an element? Then you’ll have to use javascript.

Do you want to show the total after the user has submitted the form? Then it’s a normal form handling php script. If you google for php form tutorial you’ll get thousands of results.

Hi Guido!!!

I will take a look as you suggests, thanks!