jsp登录,注册

登录login.jsp
<%@ page contentType="text/html;charset=GB2312" pageEncoding="utf-8"%>
<html>
    <head>
        <%@ include file="head.txt" %>
        <title>会员登录</title>
    </head>

<body>
<div id="Login">
    <form action="helpLogin" method="get">
        <h1 style="font-size: 35px;">登录</h1>
        <ptxt>账号:</ptxt>
        <label>
            <Input type=text name="logname">
        </label>
        <br/>
        <ptxt>密码:</ptxt>
        <label>
            <Input type=password name="password">
        </label>
        <input type="submit" value="登录">
    </form>
    <a href="register.jsp" name="zc">未有账号?注册</a><br>
    <a href="modifyPassword.jsp" name="wjmm">忘记密码?</a>
</div>


</body>
    <style>
        body {
            background-image: url(image/friend.jpg);
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
        }

        #Login {
            border: 1px solid #000;
            background-color: rgba(255, 255, 255, 0.5);
            position: absolute;
            margin: 0 auto;
            width: 300px;
            top: 20%;
            left: 40%;
            height: 350px;
            text-align: center;
            padding-top: 20px;
            border-radius: 10px;
        }

        ptxt {
            font-size: 20px;
            font-weight: bold;
            color: #000;
        }

        input[type="text"] {
            width: 200px;
            height: 30px;
            border-radius: 5px;
            border: 1px solid #000;
            margin-top: 10px;
        }

        input[type="password"] {
            width: 200px;
            height: 30px;
            border-radius: 5px;
            border: 1px solid #000;
            margin-top: 10px;
        }

        input[type="submit"] {
            width: 100px;
            height: 30px;
            border-radius: 5px;
            border: 1px solid #000;
            margin-top: 10px;
            background-color: #000;
            color: #fff;
        }

        a[name="wjmm"] {

            width: 100px;
            height: 30px;
            border-radius: 5px;
            margin-top: 10px;
            color: #030303;
        }

        a[name="zc"] {

            width: 100px;
            height: 30px;
            border-radius: 5px;
            margin-top: 10px;
            color: #030303;
        }



        return {
            position: absolute;
            white-space: nowrap;
            font-size: 20px;
            color: #ff0000;
            width: 100px;
            height: 50px;
            left: 50%;
            top: 50%;
        }
    </style>
</html>

注册register.jsp
<%@ page contentType="text/html;charset=GB2312" %>
<html>
<head>
    <%@ include file="head.txt" %>
    <title>会员注册</title>
</head>
<body>
    <div id="Register">
        <form action="helpRegister" name=form method="get">
            <h1 style="font-size: 35px;">注册</h1>
            <ptxt>输入账号:</ptxt>
            <label>
                <Input type=text name="logname" >
            </label>
            <br/>
            <ptxt>输入密码:</ptxt>
            <label>
                <Input type=password name="password">
            </label>
            <br>
            <ptxt>电子邮件:</ptxt>
            <label>
                <Input type=text name="email">
            </label>
            <br>
            <ptxt>联系电话:</ptxt>
            <label>
                <Input type=text name="phone">
            </label>
            <br><Input type=submit name="g" value="注册">
        </form>
        <a href="login.jsp" name="dl">已有账号?登录</a>

    </div>
</body>
<style>
    body {
        background-image: url(image/friend.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    #Register {
        border: 1px solid #000;
        background-color: rgba(255, 255, 255, 0.5);
        position: absolute;
        margin: 0 auto;
        width: 350px;
        top: 20%;
        left: 40%;
        height: 350px;
        text-align: center;
        padding-top: 20px;
        border-radius: 10px;
    }

    ptxt {
        font-size: 18px;
        font-weight: bold;
        color: #000;
    }

    input[type="text"] {
        width: 200px;
        height: 30px;
        border-radius: 5px;
        border: 1px solid #000;
        margin-top: 10px;
    }

    input[type="password"] {
        width: 200px;
        height: 30px;
        border-radius: 5px;
        border: 1px solid #000;
        margin-top: 10px;
    }



    input[type="submit"] {
        width: 100px;
        height: 30px;
        border-radius: 5px;
        border: 1px solid #000;
        margin-top: 10px;
        background-color: #000;
        color: #fff;
    }

    a[name="wjmm"] {
        position: absolute;
        width: 105px;
        height: 50px;
        left: 90%;
        top: 90%;
    }

    return {
        position: absolute;
        white-space: nowrap;
        font-size: 20px;
        color: #ff0000;
        width: 100px;
        height: 50px;
        left: 50%;
        top: 50%;
    }
</style>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

芜湖哈哈哈哈

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值