loading data in a drop down menu - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

loading data in a drop down menu

anindobanindob Posts: 1Member
hello everyone....

i'm tried this code but unable to solve the problem...
i'v taken a button and on the button click i want that the data shd load in a drop down menu....but its not happening....please solve this prob....
i'm posting the code....i hope it will make the things clear...


[code]
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Untitled Document
<%
Connection con=null;
ResultSet rs=null;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:p_portal");
Statement stat=con.createStatement();
String sql="select * from message_box where name='anindo'";
rs=stat.executeQuery(sql);
%>

function check()
{
var show=document.getElementById("mydivtag");
show.innerHTML = "";
}




       

       


 




[/code]
Sign In or Register to comment.