zoukankan      html  css  js  c++  java
  • JAVA日报

    javaweb(userZ.jsp)

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <div style="position:absolute;100%;height:100%;background:#7FDBFF;">
    <h1>用户注册</h1>
    <form action="${pageContext.request.contextPath}/UserServlet?method=add" method="post">
    <table>
    <td>id:</td>
    <td><input type="text" name="UserID"id="UserID" style="400px;height:30px"><br></td>
    <tr>
    <td>用户姓名:</td>
    <td><input type="text" name="UserName" style="400px;height:30px"><br></td>
    </tr>
    <tr>
    <td>性别:</td>
    <td><input type="text" name="sex" style="400px;height:30px"><br></td>
    </tr>
    <tr>
    <td>身份证号:</td>
    <td><input type="text" name="idNumber" style="400px;height:30px"><br></td>
    </tr>
    <tr>
    <td>手机号:</td>
    <td><input type="text" name="Phone" style="400px;height:30px"><br></td>
    </tr>
    <tr>
    <td>家庭住址:</td>
    <td><input type="text" name="User" style="400px;height:30px"><br></td>
    </tr>
    <tr>
    <td>密码:</td>
    <td><input type="password" name="Password" style="400px;height:30px"><br></td>
    </tr>
    <tr>
    <td><button type="submit" onclick="return check()">提交</button></td>
    <td><button type="button" onclick="history.back(-1)">返回</button></td>
    </tr>
    </table>
    </form>
    </div>
    </body>
    <script type="text/javascript">
    function check() //封装一个<body>中做成点击事件的函数
    {
    if(document.getElementById('UserID').value=='') {
    alert('密码不能为空!');
    return false;
    }else {return true;}
    }
    </script>
    </html>

  • 相关阅读:
    通过PDB文件实现非嵌入式的c++反射
    在c++中实现反射的初步想法
    对比特币相关的一些技术细节的补充
    初窥比特币
    根据一个坐标查找其所属区域的一些优化想法
    go两种数据类型的区别、数据类型和操作符、常量、变量声明
    go的相关包time、os、rand、fmt
    go语言的特性
    结构体
    defer、panic、recover
  • 原文地址:https://www.cnblogs.com/mumulailai/p/14912470.html
Copyright © 2011-2022 走看看