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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help in on_change event with sql

Status
Not open for further replies.

choohean

Technical User
Jan 15, 2002
57
0
0
MY
let say I have one combo box and one text box! The value in combo box are retrive from ms sql database! When I have already selected one of the value in the combo box! How I float the related value which need to retrive from the same database and same table to the text box?

Please give me some advice! By not using the on_change event also can!
 
do u mean the text box must contain a value related to the item selected in the combo box?

<select name =&quot;id&quot; onchange=&quot;resubmit()&quot;>

function resubmit()
{
document.formname.action=&quot;samppage&quot;
document.formname.submit()
}

include this ASP code in the top of the page:
<%
id=request(&quot;id&quot;)
sql=&quot;select column from table where coulmn=&quot;+id
%>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top