SunQuest
           Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 19th, 2002, 07:29 PM
peter83 peter83 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 19 peter83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Display further details of retreived data in a text field

I have a drop down menu (list) and a textfield. The drop down menu displays all the schools in the database and the textfield will display the schoolcode. Currently, i am able to display all the schools, however, i need to know how to change the schoolcode (in a textfield) when i change the school (drop down menu). As in it changes automatically when i select the particular school.

eg: school abc with school code 123. when i select the school, it should as well change the school code in the textfield.. Pls help....

The codes i have now is:

<%
while(rs.next()){
site = rs.getString(1);
%>
<option value="School" selected> <%= site%> </option>
<%}
rs.close();
statement.close();
//connection.close();
%>


<%
while(rs2.next()){
String siteCode = rs2.getString(1);
%>
<td width="60%">School Code:
<input type="text" name="sn" value="<%= siteCode%>">
</td>
<%}
rs2.close();
statement2.close();
//connection.close();
%>


*Note: i am currently using 2 queries..

Reply With Quote
  #2  
Old August 19th, 2002, 10:37 PM
peter83 peter83 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 19 peter83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem solved.
thanks....

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Display further details of retreived data in a text field


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway