Results 1 to 3 of 3
May 19, 2011, 14:58 #1
- Join Date
- May 2009
- 0 Post(s)
- 0 Thread(s)
Adding multiple input boxes and getting a total. Different number every time
Hey I have this form which gets created by pulling stock/products from a database using PHP and beside every product in the row is a little box for input and in there the user can input the quantity of the product they want. Sometimes only 2 products will be outputted and other times 10 or more.
What I want to happen is when the user enters in lets say 3 for the quantity of a certain product I want to get a total for how much 3 of that product will cost so I just do 3 multiply by the cost (which I have from the database) and then display the total cost down under where the list of the available products are and I want all this to happen dynamically obviously not using PHP because I don't want the page to have to reload every time they enter in a new quantity.