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
Release: 2019-11-26 15:38:28
forward
2429 people have browsed it

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);
}
}
Copy after login

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>
Copy after login

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!

Related labels:
source:www.word666.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template