i'm just thinking how to write the code ?
i've got dropdown list of colors & whn i select the colors it's stored into database color Varibale is ComboName
now the only problm is product price is fix ie ( 20$ ) & it's only 3 category ie ( intcat ).
but the 1st 3 colors ie ( 1,2,3 ) is 5$ less then product price
and next 4 colors ie ( 4,5,6,7 ( is 7$ less then product price
my product price variable intprice & here is dropdown coding
Expand|Select|Wrap|Line Numbers
- <select id="cboColours" name="drpcolor" onChange="show()">
- <option selected value="1">Make Selection</option>
- <%=PopulateCombo(rsColours,"comboName","comboName")%>
- </select>
- <script>
- function show()
- {
- document.form1.drpcolor.options[document.form1.drpcolor.selectedIndex].value
- }
- </script>
- <%
- if intcat = "3" then
- if comboName <> 4 then
- intprice = intprice - 5
- elseif comboName <> 8 then
- intprice = intprice - 7 else
- endif
- else
- intprice = intprice
- endif
- %>
Fary