Hi,
I have kind of the following on the same page:
Product1
Dropdown1 -> DropDown2 -> DropDown3 -> "Submit button"
Product2
Dropdown1 -> DropDown2 -> DropDown3 -> "Submit button"
Notes:
- DropDown1, 2 and 3 are identical for product1 and product 2 (they do not depend on the products)
- The "Submit button" aims at finding the price (which is in the MySQL db) of the product according to the selected options of DropDown1,2 and 3
What I would like is that when the user clicks on the "Submit button" of Product1,
he gets the price for this product.
At the moment, when I click on the "Submit button",
the same price is assigned to Product1 AND Product2
The way I built it is the following:
- SQL query to get the products
- javascript to build the dropdown menus
- use of $htpp_post_vars to retrieve the price of the product according to the values
selected in the dropdown menus.
My problem is actually that I am not able to make the script understand
that the price of product1 should not be assigned to product2 (and vice-versa).
I have thought of making a onchange on the third dropdown so that it displays the price (which is in the MySQL db)
;this would be the best solution, but I've been unable to do it so far...
HELP PLEASE!