Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting data with listbox values 1

Status
Not open for further replies.

unreal

Programmer
Jun 28, 2001
8
0
0
CA
Hi newbie here
Ok here is my situation I have a listbox that is dynamicly populated from a database,and I have a textarea. I want the user to select a value from the listbox and by so to populate the textarea with the text in the database according to the value of the listbox but without submiting
Here is a bit of my code.
Thanx in advance

<INPUT size=19 name=&quot;Newservice&quot;><BR><FONT color=crimson>Existing
Service</FONT>
<BR> <SELECT name=service >
<OPTION selected><%while not objserv.EOF%>
<option value=<%=objserv(&quot;Service_Name&quot;)%>>
<%=objserv.Fields(&quot;Service_Name&quot;)%>
<%
objserv.MoveNext
wend
objserv.Close
set objserv=nothing %>

</OPTION>

</SELECT></P></TD>
<TD></TD>
<TD ><TEXTAREA name=ServiceText rows=1 cols=27></TEXTAREA></TD></TR>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top