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

📄 regedit.jsp

📁 this is source code for online album
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<html>
    <head>
        <title>注册</title>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        <link href="../../style" rel="stylesheet" type="text/css">
        <script language="javascript" src="check.js"></script>
        <script language="javascript">
        <!--
            function CheckForm(TheForm) {
                trimform(TheForm);

                if (TheForm.account.value == "") {
                    alert("请填写您的帐号!");
                    TheForm.account.focus();
                    return(false);
                }

                if (!chkpasswd(TheForm.pwd.value) ||
                        TheForm.pwd.value.length < 6 ||
                        TheForm.pwd.value == "") {
                    alert("请填写您的密码!");
                    TheForm.pwd.focus();
                    return(false);
                }

                if (TheForm.name.value == "") {
                    alert("请填写您的姓名!");
                    TheForm.name.focus();
                    return(false);
                }

                if ((TheForm.sex[0].checked + TheForm.sex[1].checked) == 0) {
                    alert("请选择您的性别!");
                    return(false);
                }

                if (!chknumber(TheForm.age.value) || 
                            TheForm.age.value.length > 2 || 
                            TheForm.age.value == "") {
                    alert("请正确填写您的年龄!");
                    TheForm.age.focus();
                    return(false);
                }

                if (!chkphone(TheForm.tel.value) || TheForm.tel.value == "") {
                    alert("请正确填写您的电话号码!");
                    TheForm.tel.focus();
                    return(false);
                }

                if (TheForm.address.value == "") {
                    alert("请填写您的地址!");
                    TheForm.address.focus();
                    return(false);
                }

                if (!chkemail(TheForm.email.value)||TheForm.email.value == ""){
                    alert("请正确填写您的邮件地址!");
                    TheForm.email.focus();
                    return(false);
                }

                return(true);
            }

            function MM_openBrWindow(theURL,winName,features) { //v2.0
                theURL += document.all.form1.account.value;
                window.open(theURL,winName,features);
            }
            //-->
        </script>
    </head>
    <body topmargin="0">
    <font size="2">
        <br>
    </font>
    <form name="form1" method="post" action="Register.jsp" 
        onSubmit="return CheckForm(this)">
        <table width="550" border="0" align="center" cellpadding="0" 
        cellspacing="0"> <tr> 
            <td bgcolor="#000000" width="551">
            <table width="551" border="0" cellspacing="1" 
                cellpadding="3" height="258">
                <tr> 
                    <td colspan="2" bgcolor="0099cc" width="543" 
                        height="13">
                        <font color="#FFFFFF" size="2">会员注册
                        </font>
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="19">
                        <font size="2">帐 号:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="19">
                        <input name="account" type="text" id="account" size="20">
                        <font size="2">
                        [<a href="javascript:void(0)" 
                            onClick="MM_openBrWindow('CheckUser.jsp?account=',
                            '','width=200,height=100')">
                            <font color=red>检测帐号</font>
                        </a>] 
                        (只能使用英文和数字) </font> 
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="19">
                        <font size="2">密 码:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="19">
                        <input name="pwd" type="password" size="20">
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="19">
                        <font size="2">姓 名:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="19">
                        <input name="name" type="text" id="name" size="20">
                        <font size="2">
                        (请填写你的真实中文名) </font> 
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="20">
                        <font size="2">性 别:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="20">
                        <input type="radio" name="sex" value="1">
                        <font size="2">
                        男 </font> 
                        <input type="radio" name="sex" value="2"><font size="2">
                        女</font>
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="19">
                        <font size="2">年 龄:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="19">
                        <input name="age" type="text" id="age" size="10">
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="19">
                        <font size="2">电 话:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="19">
                        <input name="tel" type="text" id="tel" size="20">
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="19">
                        <font size="2">地 址:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="19">
                        <input name="address" type="text" id="address" size="50">
                    </td>
                </tr>
                <tr> 
                    <td bgcolor="#FFFFFF" width="90" height="20">
                        <font size="2">电子邮件:</font>
                    </td>
                    <td bgcolor="#FFFFFF" width="463" height="20">
                        <input name="email" type="text" id="email" size="20">
                    </td>
                </tr>
                <tr align="center" valign="middle"> 
                    <td colspan="2" bgcolor="#FFFFFF" width="543" height="21">
                        <input type="submit" name="Submit" value="注册">
                        <font size="2"></font> 
                        <input type="button" name="Submit2" 
                        value="返回" onClick="history.back();">
                    </td>
                </tr>
            </table></td>
        </tr></table>
    </form> </body>
</html>

⌨️ 快捷键说明

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