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.
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>
Manage the custom page to query the submission page path. After entering the content, click Submit and the submission is successful.
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.