<% String name = request.getParameter("name"); byte a []=name.getBytes("ISO-8859-1"); name=new String(a); String sex = request.getParameter("sex"); String address = request.getParameter("address"); String tel = request.getParameter("tel"); String email = request.getParameter("email"); String select = request.getParameter("select"); String pwd= request.getParameter("pwd"); %> <% ResultSet rs; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn=DriverManager.getConnection( "jdbc:odbc:dixie","","" ); Statement smt = conn.createStatement(); smt.executeUpdate("insert into zhuce values('"+name+"','"+sex+"','"+address+"','"+tel+"','"+email+select+"','"+pwd+"','2')"); { %>
姓名 | <%=name%> |
性别 | <%=sex%> |
住址 | <%=address%> |
联系电话 | <%=tel%> |
Email地址 | <%=email%><%=select%> |
登录密码 | <%=pwd%> |
<% } conn.close(); //out.print("成功执行"+ i +"条");%>