I have a asp order page that I want four drop downs to go in. I'm reading the items from a DB and that is going good after earlier help, but now I can't seem to get the second thru fourth arrays to populate...only the first. Any sugestions. Thanks
<!-- Here's the Code
<%
'create arrays
DIM ProcArray()
DIM ProcPriceArray()
REDIM ProcArray(4)
REDIM ProcPriceArray(4)
DIM printerArray()
DIM printerPriceArray()
REDIM printerArray(4)
REDIM printerPriceArray(4)
DIM discArray()
DIM discPriceArray()
REDIM discArray(4)
REDIM discPriceArray(4)
DIM optArray()
DIM optPriceArray()
REDIM optArray(4)
REDIM optPriceArray(4)
'get processor
Response.Write("<SELECT name='proc'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "P" Then
ProcArray(x)=Recordset("PartDesc"
ProcPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>" 'get processor
Response.Write(ProcArray(x) & " "
Response.Write("$" & ProcPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
Response.Write("<SELECT name='disc'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "H" Then 'get hard disc
discArray(x)=Recordset("PartDesc"
discPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(discArray(x) & " "
Response.Write("$" & discPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
Response.Write("<SELECT name='printer'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "R" Then 'get printers
printerArray(x)=Recordset("PartDesc"
printerPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(printerArray(x) & " "
Response.Write("$" & printerPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
Response.Write("<SELECT name='opt'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "O" Then 'get last but not least the optical
optArray(x)=Recordset("PartDesc"
optPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(optArray(x) & " "
Response.Write("$" & optPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
%> provide tools to let people become their best.
<!-- Here's the Code
<%
'create arrays
DIM ProcArray()
DIM ProcPriceArray()
REDIM ProcArray(4)
REDIM ProcPriceArray(4)
DIM printerArray()
DIM printerPriceArray()
REDIM printerArray(4)
REDIM printerPriceArray(4)
DIM discArray()
DIM discPriceArray()
REDIM discArray(4)
REDIM discPriceArray(4)
DIM optArray()
DIM optPriceArray()
REDIM optArray(4)
REDIM optPriceArray(4)
'get processor
Response.Write("<SELECT name='proc'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "P" Then
ProcArray(x)=Recordset("PartDesc"
ProcPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>" 'get processor
Response.Write(ProcArray(x) & " "
Response.Write("$" & ProcPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
Response.Write("<SELECT name='disc'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "H" Then 'get hard disc
discArray(x)=Recordset("PartDesc"
discPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(discArray(x) & " "
Response.Write("$" & discPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
Response.Write("<SELECT name='printer'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "R" Then 'get printers
printerArray(x)=Recordset("PartDesc"
printerPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(printerArray(x) & " "
Response.Write("$" & printerPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
Response.Write("<SELECT name='opt'>"
DO UNTIL Recordset.EOF
if Recordset("PartCode" = "O" Then 'get last but not least the optical
optArray(x)=Recordset("PartDesc"
optPriceArray(x)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(optArray(x) & " "
Response.Write("$" & optPriceArray(x))
Response.Write("</OPTION>"
end if
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
%> provide tools to let people become their best.