</body></html>
Add.jsp: <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<style type="text/css">
<!--.style1 {color: #FF0000;font-size: 24px;}
</style>
<body bgcolor="#0099FF">
<div align="center" class="style1">
<p>添加学生信息</p>
<form name="form1" method="post" action="add_1.jsp">
<p><span class="style3">学号:</span><input type="text" name="id"></p>
<p><span class="style3">姓名:</span> <input type="text" name="name"></p>
<p><span class="style3">性别:</span><input type="text" name="sex"></p>
<p><span class="style3">年龄:</span><input type="text" name="age"></p>
<p><span class="style3">体重:</span><input type="text" name="weight"></p>
<p> <input type="submit" name="queding" value="提交">
<input type="reset" name="chongtian" value="重置"></p><p> </p>
</form><p> </p>
</div></body></html>
Add_1.jsp: <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<body bgcolor="#0099FF">
<center> <h2>添加学生信息</h2>
<hr>
<p>学号:<%=request.getParameter("id")%></p>
<p>姓名:<%=request.getParameter("name")%></p>
<p>性别:<%=request.getParameter("sex")%></p>
<p>年龄:<%=request.getParameter("age")%></p>
<p>体重:<%=request.getParameter("weight")%></p>
<form name="form1" method="post" action="add_2.jsp">
<p><input type="hidden" id="id" name="id" value="<%=request.getParameter("id")%>">
<input type="hidden" id="name" name="name"
value="<%=request.getParameter("name")%>">
<input type="hidden" id="sex" name="sex" value="<%=request.getParameter("sex")%>">
<input type="hidden" id="age" name="age" value="<%=request.getParameter("age")%>">
<input type="hidden" id="weight" name="weight" value="<%=request.getParameter("weight")%>"></p><p>
<input type="submit" id="submit"name="queding" value="确定">
<input type="button" id="back"name="back" value="返回" onClick="java script:history.go(-1)"></p>
</form><p> </p></center></body></html>
Add_2.jsp: <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<style type="text/css">
<!--.style1 {color: #FF0000}.style2 {color: #0033FF}--></style
首页 上一页 2 3 4 5 6 7 8 下一页 尾页 5/11/11
基于jsp实现-图书馆信息管理系统.(五)由毕业论文网(www.huoyuandh.com)会员上传。