⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zhuce.jsp

📁 我是一个新手 这是我写的一个简单的教师信息管理系统 适合新手学习使用
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<html>

<head>

<title>注册
</title>

<script language="JavaScript" >
function isValid(form)
{
 if(form.fullname.value=="")
  {alert(" 您的姓名不能为空!");
   return false;}
 





    else 
       { if (form.pwd.value=="")
           {alert("您的密码不能为空!");
            return false;}
            else {if (form.pwd.value!=form.pwd1.value)
                   {alert(" 两次输入的密码不同!");
                    return false;} 
                      else { if(form.youxiang.value=="")
                               {alert("您的邮箱不能为空!");
                                return false;}
                             else {
                                return true;}
                           } 
                 }
      }
}
</script>







</head>

<body>







<table  align="center"  border="1" cellpadding="0" cellspacing="0" width="500" height="196" bgcolor="#C0C0C0">
  
<form action="xieru.jsp" method="post" onsubmit="return isValid(this);">

<tr>
    <td width="100%" height="1" colspan="2"> </td>
  </tr>
  <tr>
    <td width="100%" height="39" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;   
      &nbsp; <b>填写用户资料</b></td>     
  </tr>
  <tr>
    <td width="31%" height="33"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      用 户 名:  
      </font></td>
    <td width="69%" height="33"> <INPUT type="text" name="fullname" size="28"><font color="red">*</font></td>
  </tr>
  <tr>
    <td width="31%" height="33"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      密&nbsp; &nbsp; 码:</font></td>  
    <td width="69%" height="33"> <INPUT type="password" name="pwd" size="30"><font color="red">*</font></td>
  </tr>
  <tr>
    <td width="31%" height="33"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      &nbsp;&nbsp;  
      重输密码:</font></td>
    <td width="69%" height="33"> <INPUT type="password" name="pwd1" size="30"><font color="red">*</font></td>
  </tr>
  <tr>
    <td width="31%" height="33"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
      电子邮箱:</font></td>
    <td width="69%" height="33"> <INPUT type="text" name="youxiang" size="28"><font color="red">*</font></td>
  </tr>
  <tr>
    <td align="center" width="100%" height="45" colspan="2">  
     <INPUT type="submit" value="       确定       " name="submit_button">
      
  </td>
  </tr>
</table>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -