📄 ftpreg.asp
字号:
<!--#include file="chkuser.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/user.asp"-->
<%
if rshost("ftpreg")="False" then
response.redirect "error.asp?error=ftp"
response.end
end if
%>
<HTML><HEAD><TITLE>申请 FTP</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<SCRIPT language=javascript>
<!--
function check()
{
if (form1.userpass.value ==0){
alert ("请输入密码");
form1.userpass.focus();
return false;
}
if (form1.userpass.value.length < 6 || form1.userpass.value.length > 8){
alert ("对不起,密码应该为6-8位");
form1.userpass.focus();
return false;
}
if (form1.userpass2.value ==0){
alert ("请再次确认您的密码");
form1.userpass2.focus();
return false;
}
if (document.form1.userpass2.value != document.form1.userpass.value){
alert ("您的两次输入的密码不一致");
document.form1.userpass2.focus();
return false;
}
document.form1.submit.disabled=true;
}
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="#F6ECE2" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="70%">
<tr>
<td align="center">
<fieldset style="padding: 2; width:200; height:120">
<legend><strong>申请 FTP</strong></legend>
<table width="400" border="0" align="center" cellpadding="3" cellspacing="0">
<form name="form1" method="post" action="ftppost.asp" onsubmit="return check();">
<tr>
<td width="76" align="right">用户名:</td>
<td width="354"><input name="username" type="text" class="input" value="<%=rsuser("username")%>" readonly>
*FTP用户名 </td>
</tr>
<tr>
<td align="right">E-mail:</td>
<td><input name="email" type="text" class="input" value="<%=rsuser("email")%>" readonly>
* 用来接收系统发送的帐号信息 </td>
</tr>
<tr>
<td align="right">密 码:</td>
<td><input name="password" type="password" class="input" id="userpass" maxlength="8">
* 至少6位 </td>
</tr>
<tr>
<td align="right">确认密码:</td>
<td><input name="userpass2" type="password" class="input" maxlength="8">
*</td>
</tr>
<tr>
<td colspan="2" align="center"><input name="ftpsize" type="hidden" value="<%=rshost("space")%>">
<input name=submit type=submit class=button value=递交></td>
</tr>
</form>
</table>
</fieldset></td>
</tr>
</table>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -