无法验证用户名

mysite365 mysite365 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn/my_conn.asp"-->
<!--#include file="str_filter.asp"-->
<!--#include file="md5.asp"-->
<% function reg_check()
username=str_filter(request.Form("username"))
userpassword=md5(str_filter(request.Form("userpassword")))
email=str_filter(request.Form("email"))
question=str_filter(request.Form("question"))
answer=str_filter(request.Form("answer"))
turename=str_filter(request.Form("turename"))
scope=str_filter(request.Form("scope"))
id_card=str_filter(request.Form("id_card"))
sex=str_filter(request.Form("sex"))
address=str_filter(request.Form("address"))
zip=str_filter(request.Form("zip"))
phone=str_filter(request.Form("phone"))
qq=str_filter(request.Form("qq"))
if username<>""and userpassword<>""and question<>"" and answer<>"" and turename<>"" and id_card<>"" and sex<>"" and address<>"" and phone<>""and scope<>"" then
set rs=server.createobject("adodb.recordset")
rs.open "select * [bout_user] where turename='"&turename&"'",conn,1,3
if not rs.eof then
response.Write("<script language='javascript'>arert('此用户已存在,请重新输入!');</script>")
else
rs.addnew
rs("username")=username
rs("userpassword")=userpassword
rs("email")=email
rs("question")=question
rs("answer")=answer
rs("turename")=turename
rs("id_card")=id_card
rs("sex")=sex
rs("address")=address
rs("zip")=zip
rs("scope")=scope
rs("phone")=phone
rs("qq")=qq
rs.update
rs.close
set rs=nothing

session("username")=username
session("turename")=turename
session("password")=userpassword
response.Write("<script language='javascript'>arert('恭喜你会员注册成功!');window.location.href='../index.asp';</script>")
end if
else
response.Write("<script language='javascript'>arert('请将信息填写完整!');</script>")
end if
end function
%>
<%
if not isempty (request.Form("check")) then
if request.Form("username")<>""then
set rs=server.createobject("adodb.recordset")
rs.open "select username from [bout_user] where username='"&str_filter(request.Form("username"))&"'",conn,1,3
if rs.eof then
response.Write("<script language='javascript'>arert('此用户可以使用!');</script>")
else
response.Write("<script language='javascript'>arert('此用户已存在,请重新输入!');</script>")
end if
rs.close
set rs=nothing
else
response.Write("<script language='javascript'>arert('请输入用户名!');</script>")
end if
end if

if not isempty (request.Form("sumbit")) then
call reg_check()
end if

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="css/mycss.css" rel="stylesheet" type="text/css">
<title>用户注册</title>
<style type="text/css">
<!--
.STYLE2 {
color: #666666;
font-weight: bold;
font-size: 11pt;
font-family: "宋体";
}
.STYLE4 {color: #019867; font-weight: bold; font-size: 11pt; font-family: "宋体"; }
.STYLE5 {color: #FF0000}
-->
</style>
<script language="JavaScript">
<!--
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}

function check()
{
if(checkspace(form1.username.value)) {
form1.username.focus();
alert("对不起,请填写用户名!");
return false;
}
if(checkspace(form1.userpassword.value) || form1.userpassword.value.length < 6 || form1.userpassword.value.length >20) {
form1.userpassword.focus();
alert("密码长度不能不能为空,在6位到20位之间,请重新输入!");
return false;
}
if(form1.userpassword.value != form1.userpassword1.value) {
form1.userpassword.focus();
form1.userpassword.value = '';
form1.userpassword1.value = '';
alert("两次输入的密码不同,请重新输入!");
return false;
}

if(form1.email.value.length!=0)
{
if (form1.email.value.charAt(0)=="." ||
form1.email.value.charAt(0)=="@"||
form1.email.value.indexOf('@', 0) == -1 ||
form1.email.value.indexOf('.', 0) == -1 ||
form1.email.value.lastIndexOf("@")==form1.email.value.length-1 ||
form1.email.value.lastIndexOf(".")==form1.email.value.length-1)
{
alert("Email地址格式不正确!");
form1.email.focus();
return false;
}
}
else
{
alert("Email不能为空!");
form1.email.focus();
return false;
}
if(checkspace(form1.quesion.value)) {
form1.quesion.focus();
alert("对不起,请填写密码提问!");
return false;
}
if(checkspace(form1.answer.value)) {
form1.answer.focus();
alert("对不起,请填写密码提问的答案!");
return false;
}
if(checkspace(form1.turename.value)) {
form1.turename.focus();
alert("对不起,请填写真实姓名!");
return false;
}
if(checkspace(form1.adress.value)) {
form1.adress.focus();
alert("对不起,请填写通讯地址!");
return false;
}

}
if(checkspace(form1.zip.value)) {
form1.zip.focus();
alert("对不起,请填写邮编!");
return false;
}
if(form1.zip.value.length!=6) {
form1.zip.focus();
alert("对不起,请正确填写邮编!");
return false;
}
if(checkspace(form1.phone.value)) {
form1.phone.focus();
alert("对不起,请留下您的联系电话!");
return false;
}

}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
</head>

<body>
<!--#include file="top.asp"-->
<table width="777" height="430" cellspacing="0" cellpadding="0" style="border:1.5px #3AB928
solid;border-width:0 1 1 1; margin-top:6px;" align="center">

<tr>
<td align="left">

<table width="98%" border="0">
<tr>
<td height="21"> </td>
<td width="165" align="right"><em><font color="#ff0000">*号为必填项,请认真填写</font></em></td>
</tr>
</table>

<form id="form1" name="form1" method="post" action="">

<table width="98%" cellpadding="4" cellspacing="0" style="border:4px solid #EAFCE6;">
<tr>
<td height="23" align="left"><span class="STYLE4">用户名和密码:</span></td>
</tr>
<tr bgcolor="#EAFCE6">
<td height="29" bgcolor="#EAFCE6" align="left"><font color="#CC0000">*</font> 用 户 名:
<input type="text" name="username" size="18" maxlength="20" onblur="check()">
<input type="button" name="check" value="检测用户" tabindex="50">

支持中文,不支持特殊符号如:*%#!-&%$</td>
</tr>
<tr>
<td height="30">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180"><font color="#CC0000">*</font> 密  码:
<input type="userpassword" name="userpassword" size="12" maxlength="12" onblur="return check()"></td>
<td>请使用5--12位,不支持特殊符号如:*%#!-&%$</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#EAFCE6">
<td height="26">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180"><font color="#CC0000">*</font> 确认密码:
<input name="userpassword1" type="password" size="12" maxlength="12" onblur="return check()"></td>
<td>请再输入一遍您上面填写的密码。</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="30">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="318"><font color="#CC0000">*</font> 电子邮箱:
<input type="text" name="email" size="25" maxlength="50" onblur="return check()"></td>
<td width="246"></td>
</tr>
</table>
...全文

相关推荐

高校及科研院所如何利用外部数据完善技术转移转化机制.docx

科易网基于40亿+科创知识图谱数据库,深度探索AI技术在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,研究科技创新领域的AI+数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

完全复现虚拟同步发电机VSG自适应惯量阻尼控制仿真、根轨迹、调节系数对比(Simulink仿真、Matlab代码实现)

内容概要:本文档围绕“【完全复现】虚拟同步发电机VSG自适应惯量阻尼控制仿真、根轨迹、调节系数对比”这一主题,利用Simulink和Matlab平台,系统性地实现了虚拟同步发电机(VSG)的自适应惯量与阻尼控制策略的建模与仿真。内容涵盖VSG的核心控制原理、系统动态响应特性分析、根轨迹绘制以及在不同调节系数下的性能对比研究,旨在深入剖析关键控制参数对系统稳定性与动态性能的影响机制,为新能源并网系统中提升频率支撑能力和暂态稳定性的控制策略设计提供理论依据和技术支持。; 适合人群:具备扎实的电力系统分析与自动控制理论基础,熟练掌握Matlab/Simulink仿真工具,主要从事新能源发电、微电网运行、电力电子变换器控制或电力系统稳定研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①开展虚拟同步发电机(VSG)的建模与先进控制策略的深入研究;②探究自适应惯量与阻尼控制对改善电网频率响应速度和平抑功率波动的作用机理;③运用根轨迹法进行系统稳定性分析,并指导控制器参数的优化整定;④完成高水平学术论文撰写或科研项目申报所需的仿真复现实验。; 阅读建议:本资源以“完全复现”为核心目标,提供了完整的仿真模型与配套代码。使用者应在深入理解同步发电机转子运动方程、虚拟惯量及阻尼物理意义的基础上,结合电力系统暂态稳定理论,逐步操作并调试仿真模型,尤其需关注不同调节系数变化对系统动态性能指标(如超调量、调节时间)的影响,从而深化对VSG内在控制机制与稳定边界的认知。

天天程序猿

员工满意度数据集(11列,12000 条记录)CSV 合成

详情介绍:该 HR 员工数据集含 12,000 条 ×11 列(满意度、绩效评估、项目数、月均工时、司龄、工伤、福利包、晋升、部门、薪资),无缺失值但无离职标签列,且存在数据质量问题(141 条负绩效评估、144 条负工时、49.4% 异常高工伤率、项目数仅 0/1/2),疑似经过修改或合成,不能直接做经典的员工离职预测,适合做满意度回归、薪资三分类、晋升预测或员工聚类分析,使用前必须清洗异常值并注意数据真实性限制。

神仙别闹

科技服务机构如何通过数据服务增强市场竞争力?.docx

科技服务机构如何通过数据服务增强市场竞争力?

BIZKEEN

基于双向DC-DC变换器的储能电池SOC充电+放电双模式Simulink仿真

内容概要:本文详细介绍了一种基于双向DC-DC变换器的储能电池SOC(荷电状态)充放电双模式Simulink仿真模型,旨在实现储能系统在充电与放电两种工作模式下的智能切换与精确控制。该模型依托Simulink平台搭建,通过检测电池SOC实时值,动态判断并切换充放电模式,有效防止过充与过放,提升电池使用寿命与能量利用效率。系统涵盖双向功率变换、电压电流双闭环控制、模式切换逻辑及保护机制等关键环节,充分体现了电力电子变换与电池管理系统(BMS)的深度融合。该仿真模型适用于微电网、电动汽车及可再生能源系统中的能量管理研究,为优化储能调度策略、提高系统稳定性提供了可靠的技术支撑。; 适合人群:具备一定电力电子技术、自动控制理论及Simulink建模基础,从事新能源、储能系统、电力系统仿真等相关领域的研究生、科研人员及工程技术人员。; 使用场景及目标:①研究储能电池在不同负载或发电条件下的充放电动态行为;②优化电池管理系统中SOC估算精度与充放电控制策略;③验证双向DC-DC变换器在能量双向流动中的响应特性与控制性能;④为微电网能量调度、电动汽车能量回收、风光储一体化系统等实际应用场景提供仿真验证与设计依据。; 阅读建议:建议结合Simulink仿真环境动手实践,深入理解主电路拓扑、控制环路设计及模式切换逻辑,同时可配合相关文献资料进一步探究PI控制、滞环控制等算法对系统动态性能的影响,以全面提升对储能系统能量管理机制的认知与设计能力。

荔枝科研社
评论 7
收藏 已收藏
分享
返回顶部
mysite365
ASP 28,401 成员 356,940 内容