Home >CMS Tutorial >Empire CMS >How to register as an Imperial CMS member and join the Q&A verification

How to register as an Imperial CMS member and join the Q&A verification

silencement
silencementforward
2019-11-26 15:38:282451browse

How to register as an Imperial CMS member and join the Q&A verification

The example in this article describes the method of registering as an Imperial CMS member to join the Q&A verification. Share it with everyone for your reference. The specific implementation method is as follows:

Modify the file: e/enews/index.php

The code is as follows:

//注册
elseif($enews=="register")
{
if($_POST['ask']=='帝国软件')//这句是关键!!
{
$username=$_POST['username'];
$password=$_POST['password'];
$repassword=$_POST['repassword'];
$email=$_POST['email'];
register($username,$password,$repassword,$email);
}
else
{
printerror("EmptyMemberask","history.go(-1)",1);
}
}

It is recommended to study "Empire cms tutorial"

Then add the following code to /e/member/register/register.php

The code is as follows:

<tr>
<td height="25" bgcolor="#FFFFFF"> <div align=&#39;left&#39;>问题答案:</div></td>
<td height="25" bgcolor="#FFFFFF"> 请问www.phome.net首页logo中的汉字是?答案:帝国软件
<input name=&#39;ask&#39; type=&#39;text&#39; id=&#39;ask&#39; maxlength=&#39;50&#39;>
*</td>
</tr>

Hope this article will help Everyone’s Empire CMS website building helps.

The above is the detailed content of How to register as an Imperial CMS member and join the Q&A verification. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.word666.com. If there is any infringement, please contact admin@php.cn delete