I am writing a code for a shopping cart, the customer selects the color, which also has the price. I want to send the color and the price to "price" and "color" on the mysql server. How do I code a SELECT to send two different variables to two different mysql names?
I have this right now....
It doesn't work, so I want to know if there is a way to do this... thank you.
I have this right now....
Code:
echo "<select name='priceBox' name2='colorBox'>";
echo "<option value='" . $prodrow['price'] . "' value2='" . Black . "'>Black $" . $prodrow['price'] . "</option>";
echo "<option value='" . $prodrow['price2'] . "' value2='" . White . "'>White $" . $prodrow['price2'] . "</option>";
echo "<option value='" . $prodrow['price3'] . "' value2='" . None . "'>No Paint $" . $prodrow['price3'] . "</option>";
echo "</select>";
Comment