|
|
|
|
|
| | |
|
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: getText from Combo box |
From: |
Afolabi Arowolo |
Date: |
10/2/2000 7:32:49 PM |
IP: |
195.92.67.67 |
Errmm I couldnt quite follow your code but I think what you said you want is the ability to grab the text from a combo box, basically wha you want is i.e
<%set rs = server.createobject("adodb.recordset")
sql = "select name from daatabase"
rs.open sql, con%>
<select name="values">
<%do until rs.eof%>
<option value="<%=rs("name")%>"><%=rs("name")%>
<rs.movenext
loop%>
</select>
<rs.close
set rs = nothing
con.close
set con = nothing%>
So to answer your question how to get the value from a combo box what the above code does is pass an hidden field into the select name, so ie if you were to submit the form you,ll get the value of the hidden field being passed. I hope I,ve helped, email me back please as this is one of my first replies to a forum
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|