1
2
|
< input type = "hidden" name = "bid" value = "1" > < input name = "enews" type = "hidden" value = "AddGbook" > 提示:增加一下一句就可以了ecms7.2增加
< input name = "enews" type = "hidden" value = "AddGbook" >即可 至于其他帝国cms版本增加两个,其实你都加上也没事
|
说明:name="bid" value="1" 指留言或者反馈的分类ID
AddGbook 是指留言模块 ;AddFeedback 是指反馈模块;
下面是网站的完整案例:
<form action="../../enews/index.php" method="post" name="form1" id="form1" style="margin:0px; padding:0px;" onsubmit="return checkMyForm(this);">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tab">
<tr>
<td width="19%" align="center">姓 名:</td>
<td width="81%"><input name="name" type="text" id="name" size="20" /></td>
</tr>
<tr>
<td align="center">联系邮箱:</td>
<td><input name="email" type="text" id="email" size="20" /></td>
</tr>
<tr>
<td align="center">联系电话:</td>
<td><input name="mycall" type="text" id="mycall" size="20" /></td>
</tr>
<tr>
<td align="center">反馈主题:</td>
<td><input name="title" type="text" id="title" size="35" /></td>
</tr>
<tr>
<td align="center">具体内容:</td>
<td><textarea name="lytext" id="lytext" cols="35" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td>
<img src="[!--news.url--]skin/imgbf/6.jpg" width="75" height="22" class="png" style="cursor:pointer;" onclick="document.getElementById('form1').submit();" />
<img src="[!--news.url--]skin/imgbf/7.jpg" width="75" height="22" class="png" style="cursor:pointer;" onclick="document.getElementById('form1').reset();" />
</td>
</tr>
<input name="enews" type="hidden" value="AddGbook">
</table>
</form>
简单的留言事例:
<form action="../../enews/index.php" method="post" name="form1" id="form1">
<input type="hidden" name="bid" value="1">
<input name="enews" type="hidden" value="AddGbook">
<ul class="leave-m mt40">
<li>
<label>昵 称:</label>
<input name="name" type="text" id="name">
</li>
<li>
<label>电 话:</label>
<input name="mycall" type="text" id="mycall">
</li>
<li>
<label>邮 箱:</label>
<input name="email" type="text" id="email">
</li>
<li class="textarea-T">
<label>留言板:</label>
<textarea name="lytext" id="lytext"></textarea>
</li>
<li>
<input class="Determine" type="submit" name="Submit3" value="确定">
<input class="Reset" type="reset" name="Submit22" id="" value="重置">
</li>
</ul>
</form>