How does Empire cms implement the submission function? Let’s introduce it to you in detail below.
Recommended tutorial: Empire cms tutorial
##1. First, enable the submission function in "System->System Settings->System Parameter Settings->User Settings->Front Desk Settings".
2. Click "System->Data Table and System Model->New Data Table" to create a new submitted data table and fields.
3. Click Manage Data Table, find the newly created data table management field, and add the required fields.
## 4. Click the management system model of the corresponding data table to add the system model, the submission items to be displayed on the front page and Entry items must be checked.
5. Add a column, change the system model bound to the column to the newly created system model, select the ultimate column, Enable front desk submission.
6. Add a custom page. Share the submission form with everyone:
<form name="add" method="POST" enctype="multipart/form-data" action="e/DoInfo/ecms.php" οnsubmit="return EmpireCMSQInfoPostFun(document.add,'11');">
<input value="MAddInfo" name="enews" type="hidden">
<input value="3" name="classid" type="hidden"> <!-- 栏目id -->
<input name="id" id="id" value="" type="hidden">
<input value="1453532599" name="filepass" type="hidden">
<input name="mid" id="mid" value="11" type="hidden"><!-- //模型id -->
<input type=hidden name=ecmsfrom value="9">
<ul>
<li>您的姓名:<input name="title" id="title" type="text">*</li>
<li>来自哪里:
<select name="address" id="address">
<option value="北京"<?=$r[address]=="北京"||$ecmsfirstpost==1?' selected':''?>>北京</option>
<option value="上海"<?=$r[address]=="上海"?' selected':''?>>上海</option>
<option value="天津"<?=$r[address]=="天津"?' selected':''?>>天津</option>
<option value="重庆"<?=$r[address]=="重庆"?' selected':''?>>重庆</option>
<option value="河北"<?=$r[address]=="河北"?' selected':''?>>河北</option>
</select>
</li>
<li>愿文内容:<textarea name="ywtext" id="ywtext" cols="60" rows="7"></textarea>*</li>
<li><span>提交后合起双眼诚心祈求..</span></li>
<li>
<span>
<input name="" src="[!--news.url--]skin/yongning/images/tjan.jpg" type="submit">
<input name="" src="[!--news.url--]skin/yongning/images/czan.jpg" type="reset">
</span>
</li>
</ul>
</form>
The above is the detailed content of How to submit articles to Empire CMS. For more information, please follow other related articles on the PHP Chinese website!