
我的网站是用帝国cms建的,现在需要一个留言本的功能,但要求是在首页里就能实现提交留言...
我的网站是用帝国cms建的,现在需要一个留言本的功能,但要求是在首页里就能实现提交留言,而帝国的自带留言本必须是http://域名.com/e/tool/gbook/?b...
我的网站是用帝国cms建的,现在需要一个留言本的功能,但要求是在首页里就能实现提交留言,而帝国的自带留言本必须是http://域名.com/e/tool/gbook/?bid=1 这样,嵌套页面的话,也不合适,因为我的表单时漂浮在网页上的。直接把form表单写在首页里吧,提交时又提示"您来自的链接不存在",这个问题该如何解决呢?谢谢...
展开
展开全部
提示"您来自的链接不存在"
是因为你少了一个参数
1 2 3 4 5 6 | < input name = "bid" type = "hidden" value = "留言分类" /> /*系统默认的是bid=1,也就是留言分类为1,或者你自己看系统自带的这个留言本的访问路径*/ http://域名.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 | < 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 > |
追问
谢谢你 真的成功了,还有个小问题再请教您一下 留言提交成功后要怎样修改跳转的页面 到首页呢?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询