【php开源代码栏目提醒】:网学会员--在 php开源代码编辑为广大网友搜集整理了:c_552eb88f425acc4fe32c5134039af38b.php绩等信息,祝愿广大网友取得需要的信息,参考学习。
<!DOCTYPE html PUBLIC "-//W3C//DTD X
HTML 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" />
<title>
会员注册</title>
<link href="/Style/index.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/Js/Base.js"></script>
</head>
<body>
<div id="SearchContent" style="width:98%; ">
<div id="top_left">
<h2 class="hot">
注册网上商城用户</h2>
</div>
</div>
<div id="contt">
<form id="form1" name="form1" method="post" action="/Register/Check" autocomplete="off">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="195" align="left" valign="top"><h2>帐号:</h2></td>
<td width="505" align="left"><?php if ($this->_vars['error']['NAME_MSG']): ?>
<div class="reg_error"> <?php endif; ?>
<input name="name" type="text" id="name" size="40" value="<?php echo $this->_vars['error']['NAME_VALUE']; ?>
" /><br /><A-Z字母,0-9数字,下划线_组成,长度3-18个字符>
<?php if ($this->_vars['error']['NAME_MSG']): ?>
<div><?php echo $this->_vars['error']['NAME_MSG']; ?>
</div>
</div>
<?php endif; ?></td>
</tr>
<tr>
<td width="195" align="left"><h2>激活邮箱:</h2></td>
<td width="505" align="left"><?php if ($this->_vars['error']['MAIL_MSG']): ?>
<div class="reg_error"> <?php endif; ?>
<input name="email" type="text" id="email" size="40" value="<?php echo $this->_vars['error']['MAIL_VALUE']; ?>
"/>
<?php if ($this->_vars['error']['MAIL_MSG']): ?>
<div><?php echo $this->_vars['error']['MAIL_MSG']; ?>
</div>
</div>
<?php endif; ?> </td>
</tr>
<tr>
<td width="195" align="left" valign="top"></td>
<td width="505" align="left"><p>例如:happy@egspace.com,错误的邮箱将无法激活帐号!</p></td>
</tr>
<tr>
<td width="195" align="left"><h2>登录密码:</h2></td>
<td width="505" align="left"><?php if ($this->_vars['error']['PASS_MSG']): ?>
<div class="reg_error"> <?php endif; ?>
<input name="password" type="password" id="password" value="<?php echo $this->_vars['error']['PASS_VALUE']; ?>
" size="40" /><br /><密码长度请在6-20位之间>
<?php if ($this->_vars['error']['PASS_MSG']): ?>
<div><?php echo $this->_vars['error']['PASS_MSG']; ?>
</div>
</div>
<?php endif; ?> </td>
</tr>
<tr>
<td width="195" align="left"><h2>确认密码:</h2></td>
<td width="505" align="left"><?php if ($this->_vars['error']['CNFM_MSG']): ?>
<div class="reg_error"> <?php endif; ?>
<input name="rpassword" type="password" id="rpassword" value="<?php echo $this->_vars['error']['CNFM_VALUE']; ?>
" size="40" />
<?php if ($this->_vars['error']['CNFM_MSG']): ?>
<div><?php echo $this->_vars['error']['CNFM_MSG']; ?>
</div>
</div>
<?php endif; ?> </td>
</tr>
<tr>
<td align="left"><h2>是否接收邮件:</h2></td>
<td align="left"><input name="isacceptemail" type="radio" value="1" checked="checked" />
是
<input name="isacceptemail" type="radio" value="0" />
否</td>
</tr>
<tr>
<td width="195" align="left"><h2>验证码:</h2></td>
<td width="505" align="left"><?php if ($this->_vars['error']['VRFY_MSG']): ?>
<div class="reg_error">
<?php endif; ?>
<input name="verify" type="text" id="verify" value="" size="6" />
(请输入:<img src="/Index/GetVerifyImg" style="cursor: pointer" onclick="this.src='/Index/GetVerifyImg?' + Math.random();" title="看不清验证码请点击" border="1">)
<?php if ($this->_vars['error']['VRFY_MSG']): ?>
<div><?php echo $this->_vars['error']['VRFY_MSG']; ?>
</div>
<div>
<?php endif; ?></td>
</tr>
</table>
<input name="logintxt" type="button" value="提 交 注 册" style="padding:3px; font-size:14px;" onclick="javascript:DoRegister();" />
</form>
</div>
<SCRIPT language=javascript>
/**
* 功能:检测用户名的格式
*/
function isValidUserID(strUserID)
{
var i,cChar
var strValidID = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
for (i=0;i<strUserID.length;i++)
{
cChar = strUserID.charAt(i);
if(strValidID.indexOf(cChar)==-1) return false;
}
return true;
}
/**
* 功能:判断EMAIL的格式
*/
function checkEmail(str)
{
if(str == "")
return false;
if (str.charAt(0) == "." || str.charAt(0) == "@" || str.indexOf('@', 0) == -1
|| str.indexOf('.', 0) == -1 || str.lastIndexOf("@") == str.length-1 || str.lastIndexOf(".") == str.length-1)
return false;
else
return true;
}
/**
* 功能:检测表单提交项
*/
function check_data()
{
if($('name').value.trim() == '') //判断用户名是否为空
{
al