帝国cms会员注册页面

时间:2023年07月10日

/

来源:网络

/

编辑:佚名

会员注册页面
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']='注册会员';
$url="<a href=../../../>首页</a> > <a href=../cp/>会员中心</a> > 注册会员";
?>
引入公共头部:
<?php
require(ECMS_PATH.'e/template/incfile/header.php');
?>
注册表单:
<form name=userinfoform method=post enctype="multipart/form-data" action=../doaction.php>
<input name="groupid" type="hidden" id="groupid" value="<?=$groupid?>">
<input name="tobind" type="hidden" id="tobind" value="<?=$tobind?>">
<input type=hidden name=enews value=register>
//判断是否绑定账号:<?=$tobind?' (绑定账号)':''?>
//基本信息
用户名:<input name='username' type='text' id='username' maxlength='30'>
密码:<input name='password' type='password' id='password' maxlength='20'>
重复密码:<input name='repassword' type='password' id='repassword' maxlength='20'>
邮箱:<input name='email' type='text' id='email' maxlength='50'>
其他信息<strong>
</strong><span style="white-space: pre-wrap;"> <?php
</span><span style="white-space: pre-wrap;">@include($formfile);
</span><span style="white-space: pre-wrap;">?></span><span style="white-space: pre-wrap;">
</span>//注:其他信息的样式修改在后台“用户”-->“会员管理”-->“管理会员字段”和“管理会员表单”中进行修改。
判断后台是否开启注册需要验证码
<?
if($public_r['regkey_ok'])
{
?>
验证码:<input name="key" type="text" id="key" size="6">
        <img src="../../ShowKey/?v=reg" name="regKeyImg" id="regKeyImg" onclick="regKeyImg.src='../../ShowKey/?v=reg&t='+Math.random()" title="看不清楚,点击刷新">
<?
}
?>
提交按钮:<input type='submit' name='Submit' value='马上注册'>
返回上一级:<input type='button' name='Submit2' value='返回' onclick='history.go(-1)'>
</form>
引入公共底部:
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。