I have to realize a web application with a didactic purpose.
I have to implement a shopping cart now and my idea is to do it like this:
the application shows a table with a product on every row, every row has these columns "name" "price" "availability" "quantity". In the field "quantity" users have to write how many pieces of the product they want, of course they can insert a number for more then one product and once they have finished they click on a button to confirm their choices.
My doubt is: how can I put in relation every number written by the user and the product on the same row?
I don't have any code to show and I don't need any code at the moment, I only need an explanation on how to do that, then I'll see how to implement your suggestions.
I hope you can understand what I'm asking, my english is not that good.