<input name="bid" type="hidden" value="留言分类" />
/系统默认的是bid=1,也就是留言分类为1,或者你自己看系统自带的这个留言本的访问路径/
http://yourdomainname.com/e/tool/gbook/?bid=1
/此时的bid=1/
你在你的首页模板中,添加了留言本代码后,记得要插入上面的这句input,这句input,必须放在form里面
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <form action="[!--news.url--]e/enews/index.php" method="post" name="form1" id="form1"> 姓名: <input name="name" type="text" id="name" /> <br /> 联系邮箱: <input name="email" type="text" id="email" /> <br /> 联系电话: <input name="mycall" type="text" id="mycall" /> <br /> 留言内容(*): <textarea name="lytext" cols="60" rows="12" id="lytext"></textarea> <br /> <br /> <input type="submit" name="Submit3" value="提交" /> <input type="reset" name="Submit22" value="重置" /> <input name="enews" type="hidden" id="enews" value="AddGbook" /> <input name="bid" type="hidden" value="分类ID" /> </form>
|