在栏目单页里怎么才能获取到提交过来的隐藏域产品标题呢

迅睿框架 更新 2024-03-14 08:47:56 求知若渴虚心若愚

全站伪静态下,

在产品详情页模板show_products.html加入了一个按钮表单,隐藏域是当前的产品标题,提交到一个栏目单页【在线留言】

<form id="orderform" method="post" action="{category module=share id=5}{$t.url}{/category}">
 <input type="hidden" name="ordername" value="{$title}"/>
 <a href="javascript:orderform.submit();">在线订购</a>
</form>

在栏目单页【在线留言】模板page_message.html里怎么才能获取到提交过来的隐藏域产品标题呢?

{php extract(dr_get_form_post_value('message'));}

<form id="myform" name="myform" method="post" action="{$post_url}" onSubmit="return CheckJob()">

{$form}

<div class="form-group">

<label for="title">留言标题:</label>

<div class="col-sm-6">

<input type="text" name="data[title]" class="form-control" id="title" placeholder="必填" value="{php echo $_POST['ordername'];}">

</div>

</div>



方案

  • 开源社区插件技术-小鹏 #1 · 2024-02-25 10:27:53
    满意答案
    action="{category地址。这种写法肯定是错误的,因为栏目页面禁止提交啊这种提交思路应该改成这样。第一步 内容页面,把栏目那些表单的代码复制过来,第二步 回到表单代码,用标签加个隐藏域就好了
  • 求知若渴虚心若愚 #2 · 2024-03-14 08:47:56
    @开源社区插件技术-小鹏:问题除了官方能看到,其他网友看不到?

迅睿系统漏洞

百度AI批量检测敏感词
百度AI批量检测敏感词(2026-10-26)
优化长任务超时问题
泛解析站群系统
泛解析站群系统(2026-10-26)
添加子站时设置模板
GEO系统
GEO系统(2026-10-26)
修复抖音图文会话不持久:扩大 Cookie 域、会话 Cookie ...
GeoSeo收录宝
GeoSeo收录宝(2026-10-25)
优化插件日志等小细节 1 优化 爬虫监控月统计超200万数据容易...
迅睿工具箱
迅睿工具箱(2026-10-24)
修正页面显示样式
秒变内部站
秒变内部站(2026-10-23)
全站只有管理员身份可以访问
GeoSeo工具箱
GeoSeo工具箱(2026-10-23)
Schema信息数据兜底
AI文章生成器
AI文章生成器(2026-10-23)
关键词批量录入
网站监控
网站监控(2026-10-23)
状态码大于0,即认为服务器在线