Basically what you need to do is this:
Code:
<%
Response.Write "<option "
If select = cpu1price Then
Response.Write "selected "
End if
Response.Write "value=""" & cpu1price & """>" & cpu1fromdatabase & " [+ $" & cpu1price-select & "]</option>"
Response.Write "<option "
If select = cpu1price Then
Response.Write "selected "
End if
Response.Write "value=""" & cpu2price & """>" & cpu1fromdatabase & " [+ $" & cpu1price-select & "]</option>"
Response.Write "<option "
If select = cpu1price Then
Response.Write "selected "
End if
Response.Write "value=""" & cpu3price & """>" & cpu1fromdatabase & " [+ $" & cpu1price-select & "]</option>"
%>
Replace your 3 option lines with this and I think it will work. There may be some mistakes, but basicallly, you just test the cpuprice variable and see if it is equal to select. If it is, you put the word selected inside the option tag.
Bookmarks