addform.jsp~29~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.sql.*" %>
- <html>
- <body>
- <script language="javascript">
- function checkform() {
- if (document.add.stu_name.value=="" || document.add.stu_id.value==""|| document.add.stu_password.value==""|| document.add.sex.value==""|| document.add.dept.value==""|| document.add.mz.value==""|| document.add.zzmm.value==""){
- alert("课程号、课程名不能为空!");
- return false;
- }
- else {
- alert("添加成功!");
- return true;
- }
- }
- </script>
- <% request.setCharacterEncoding("gb2312"); %>
- <head>
- <title>
- 添加学生纪录
- </title>
- </head>
- <FORM Action="add_course1.jsp" Method="post" name="add">
- <table align="center" border="2" width="100%" bordercolorlight="#CC99FF" cellpadding="2" bordercolordark="#FFFFFF" cellspacing="2">
- <tr> <td align=center colspan=2><font color=blue size=5><b>添加学生</font></td>
- </tr>
- <tr align=center><td>
- 姓名:</td><td><INPUT TYPE="text" NAME="stu_name" ></td>
- </tr>
- <tr align=center><td>
- 学号:</td><td><INPUT TYPE="text" NAME="stu_id"></td>
- </tr>
- <tr align=center><td>
- 密码:</td><td><INPUT TYPE="password" NAME="stu_password" ></td>
- </tr>
- <tr align=center><td>
- 性别:</td><td><INPUT TYPE="text" NAME="sex" ></td>
- </tr>
- <tr align=center><td>
- 专业:</td><td><INPUT TYPE="text" NAME="dept"></td>
- </tr>
- <tr align=center><td>
- 民族:</td><td><INPUT TYPE="text" NAME="mz"></td>
- </tr>
- <tr align=center><td>
- 政治面貌:</td><td><INPUT TYPE="text" NAME="zzmm"></td>
- </tr>
- <tr><td align=center colspan=2>
- <INPUT align=center TYPE="submit" value="提交" onclick="javascript:return(checkform());"> </td>
- </tr>
- </table>
- </form>
- <br>
- <br>
- <br>
- <br>
- <p align=center>
- <a href="admin.jsp";>返回</a> </p>
- </body>
- </html>