<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%...@page import="db_sql.*,java.sql.*" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <html> <%! String month[]= {"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC",}; Integer i=new Integer(0); ResultSet rs; %>
<head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <style type="text/css">@import "css/ui.datepicker.css";</style> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript" src="js/ui.datepicker.js"></script> <script type="text/javascript"> $(function() { $("#datepicker").datepicker(); }); </script> <body> <div id="student_details"> <form id="stud_form" name="stud_form" action="" onsubmit="return validate()"> <table> <tbody> <tr> <td>Program </td> <td> </td> <td> <% sql_select sql1=new sql_select(); rs=sql1.select_record("SELECT * FROM Programs order by Name_Program;"); %> <select name="program"> <% while(rs.next()) { %> <option value="<% out.write(rs.getString(0)); %>"><% out.write(rs.getString(1)+"-"+rs.getString(2)); %> </option> <% } %> </select> </td> </tr> </tbody> </table> </form> </div> </body> </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---