zoukankan      html  css  js  c++  java
  • 第七周作业

    <%@ 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>
    <style type="text/css">
    body {
        background-color: azure;
    }
    
    form {
        position: fixed;
        top: 250px;
        left: 650px;
        background-color: #ADD8E6;
        border-radius: 5px;
    }
    
    div {
        font-size: 22px;
        margin-top: 20px;
        padding-left: 40px;
    }
    
    input {
         200px;
        height: 20px;
        border-radius: 5px;
    }
    
    #tj {
         80px;
        height: 30px;
        margin-left: 140px;
        border-radius: 5px;
        font-size: 16px;
        margin-bottom: 20px;
    }
    </style>
    
    </head>
    <body>
        <form action="/school/panduanreg.jsp" method="post">
            <div>
                账 号:    <input type="text" name="username">
            </div>
            <div>
                密 码:    <input type="text" name="password">
            </div>
    
            <div>
                <input type="submit" id="tj" value="注册">
            </div>
        </form>
    
    </body>
    <script type="text/javascript">
    
    </script>
    </html>
    

      

    <%@ 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>
    <style type="text/css">
    body {
        background-color: azure;
    }
    
    form {
        position: fixed;
        top: 250px;
        left: 650px;
        background-color: #ADD8E6;
        border-radius: 5px;
    }
    
    div {
        font-size: 22px;
        margin-top: 20px;
        padding-left: 40px;
    }
    
    input {
         200px;
        height: 20px;
        border-radius: 5px;
    }
    
    #tj {
         80px;
        height: 30px;
        margin-left: 140px;
        border-radius: 5px;
        font-size: 16px;
        margin-bottom: 20px;
    }
    </style>
    
    </head>
    <body>
        <form action="/school/panduanreg.jsp" method="post">
            <div>
                账 号:    <input type="text" name="username">
            </div>
            <div>
                密 码:    <input type="text" name="password">
            </div>
    
            <div>
                <input type="submit" id="tj" value="注册">
            </div>
        </form>
    
    </body>
    <script type="text/javascript">
    
    </script>
    </html>
    

      

    <%@page import="com.Stu"%>
    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%
        Stu s = new Stu();
        int id = Integer.parseInt(request.getParameter("sid"));
        s.setSid(id);
        String uname = request.getParameter("uname");
        s.setUname(uname);
        String upwd = request.getParameter("upwd");
        s.setUpwd(upwd);
        
        StuDao sd=new StuDao();
        if(sd.addStu(s)>0){
            //跳转注册成功页面 
        }else{
            //错误页面 
        }
        
        
        
    %>
    

      

  • 相关阅读:
    vue项目实战:原生百度地图api的使用
    vue项目实战:页面公共组件的全局注册动态引入的考虑
    celery+django的定时任务设置
    celery.exceptions.NotRegistered: 'tasks.add' + celery delay 坑 + python manage.py check 查看状态
    from __future__ import absolute_import的作用
    Django与celery集成:异步任务原理和过程
    python -m pip install --upgrade pip --default-timeout=100 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
    Django 的安全
    django集成sentry实现日志上报和钉钉告警
    TypeScript(21): 装饰器
  • 原文地址:https://www.cnblogs.com/reddead/p/14677302.html
Copyright © 2011-2022 走看看