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='left'>问题答案:</div></td> <td height="25" bgcolor="#FFFFFF"> 请问www.phome.net首页logo中的汉字是?答案:帝国软件 <input name='ask' type='text' id='ask' maxlength='50'> *</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!