业务经理

微信扫描以上二维码

028-61286886

技术咨询

后台设置了一个这样的表单想问问怎么调用到前端看了一下演示但是

迅睿框架 更新 2020-11-30 01:26:53 唯一

image.png

image.png



后台设置了一个这样的表单,想问问怎么调用到前端?看了一下演示,但是尝试几次都没有成功

<form action="" class="wrap mt20" method="post" name="jkdjbmb" id="healthy">
                                {$form}
   
        <table>
            <tbody>
            <tr>
                <th>姓  名</th>
                <td>  {$mingzi}<input type="text" name="mingzi" /></td>
                <th>性  别</th>
                <td><input type="text" name="sex" /></td>
                <th>出生年月日</th>
                <td><input type="text" name="birth" /></td>
            </tr>
            <tr>
                <th>民  族</th>
                <td><input type="text" name="nation" /></td>
                <th>兴趣爱好</th>
                <td><input type="text" name="interest" /></td>
                <th>本人手机</th>
                <td><input type="text" name="phone" /></td>
            </tr>
            <tr>
                <th>现有常见病</th>
                <td><input type="text" name="illness" /></td>
                <th>近期身体情况</th>
                <td><input type="text" name="conditions" /></td>
                <th>是否介助行走</th>
                <td><input type="text" name="disease" /></td>
            </tr>
            <tr>
                <th>籍贯</th>
                <td><input type="text" name="address" /></td>
                <th>家属联系人</th>
                <td><input type="text" name="membername" /></td>
                <th>家属手机</th>
                <td><input type="text" name="memberphone" /></td>
            </tr>
            <tr>
                <th>陪同人姓名</th>
                <td><input type="text" name="peername" /></td>
                <th>性别</th>
                <td><input type="text" name="accompany" /></td>
                <th>出生年月日</th>
                <td><input type="text" name="peerbirth" /></td>
            </tr>
            <tr>
                <th>民族</th>
                <td><input type="text" name="peernation" /></td>
                <th>兴趣爱好</th>
                <td><input type="text" name="peerinterest" /></td>
                <th>本人手机</th>
                <td><input type="text" name="peerphone" /></td>
            </tr>
            <tr>
                <th>现有常见病</th>
                <td><input type="text" name="peerillness" /></td>
                <th>近期身体情况</th>
                <td><input type="text" name="peercondition" /></td>
                <th>是否介助行走</th>
                <td><input type="text" name="peerdisease" /></td>
            </tr>
            <tr>
                <th>预定公寓名称</th>
                <td><input type="text" name="peeridentity" /></td>
                <th>入住时间</th>
                <td><input type="text" name="peerallergy" /></td>
                <th>入住天数</th>
                <td><input type="text" name="peerallergen" /></td>
            </tr>
            <tr>
                <th>备注(需求)</th>
                <td colspan="6"><input type="text" name="memberaddress" /></td>
            </tr>
            </tbody>
            <tfoot>
            <tr>
               
            </tfoot>
        </table>
        <p class="mt20 t-a-c">
			
			
			<button type="submit" name="jkdjbmb" value="提交">提交</button>

</p>
    </form>

image.png

方案

  • 迅睿框架创始人 #1 · 2019-10-29 13:54:30
    {php extract(dr_get_form_post_value('jkdjbmb'))}
    <form action="" class="wrap mt20" method="post" name="myform" id="myform">
    	{$form}
       
            <table>
                <tbody>
                <tr>
                    <th>姓  名</th>
                    <td>  {$mingzi}<input type="text" name="mingzi" /></td>
                    <th>性  别</th>
                    <td><input type="text" name="sex" /></td>
                    <th>出生年月日</th>
                    <td><input type="text" name="birth" /></td>
                </tr>
                <tr>
                    <th>民  族</th>
                    <td><input type="text" name="nation" /></td>
                    <th>兴趣爱好</th>
                    <td><input type="text" name="interest" /></td>
                    <th>本人手机</th>
                    <td><input type="text" name="phone" /></td>
                </tr>
                <tr>
                    <th>现有常见病</th>
                    <td><input type="text" name="illness" /></td>
                    <th>近期身体情况</th>
                    <td><input type="text" name="conditions" /></td>
                    <th>是否介助行走</th>
                    <td><input type="text" name="disease" /></td>
                </tr>
                <tr>
                    <th>籍贯</th>
                    <td><input type="text" name="address" /></td>
                    <th>家属联系人</th>
                    <td><input type="text" name="membername" /></td>
                    <th>家属手机</th>
                    <td><input type="text" name="memberphone" /></td>
                </tr>
                <tr>
                    <th>陪同人姓名</th>
                    <td><input type="text" name="peername" /></td>
                    <th>性别</th>
                    <td><input type="text" name="accompany" /></td>
                    <th>出生年月日</th>
                    <td><input type="text" name="peerbirth" /></td>
                </tr>
                <tr>
                    <th>民族</th>
                    <td><input type="text" name="peernation" /></td>
                    <th>兴趣爱好</th>
                    <td><input type="text" name="peerinterest" /></td>
                    <th>本人手机</th>
                    <td><input type="text" name="peerphone" /></td>
                </tr>
                <tr>
                    <th>现有常见病</th>
                    <td><input type="text" name="peerillness" /></td>
                    <th>近期身体情况</th>
                    <td><input type="text" name="peercondition" /></td>
                    <th>是否介助行走</th>
                    <td><input type="text" name="peerdisease" /></td>
                </tr>
                <tr>
                    <th>预定公寓名称</th>
                    <td><input type="text" name="peeridentity" /></td>
                    <th>入住时间</th>
                    <td><input type="text" name="peerallergy" /></td>
                    <th>入住天数</th>
                    <td><input type="text" name="peerallergen" /></td>
                </tr>
                <tr>
                    <th>备注(需求)</th>
                    <td colspan="6"><input type="text" name="memberaddress" /></td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                   
                </tfoot>
            </table>
            <p class="mt20 t-a-c">
    			
    			<button type="button" onclick="dr_ajax_submit('{$post_url}', 'myform', '2000', '{$rt_url}')" class="btn green"> <i class="fa fa-save"></i> 提交内容</button>
    			<button type="submit" name="jkdjbmb" value="提交">提交</button>
    
    </p>
        </form>
    https://www.xunruicms.com/doc/612.html很简单的
  • 吉祥三宝 #2 · 2019-10-29 14:10:09
    做好两点1、form隐藏域2、button单击事件
  • 唯一 #3 · 2019-10-30 00:08:19
    回复迅睿框架创始人
    image.png
  • 唯一 #4 · 2020-11-30 01:26:50
    满意答案
    没有好的解决方案,进行关单处理!
  • 唯一 #5 · 2020-11-30 01:26:53
    @唯一:没有好的解决方案,进行关单处理!

迅睿系统漏洞

图片格式转化
图片格式转化(2026-10-17)
修复百度编辑器里的内容图片没有转换为webp格式 历史文章列表不显...
站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
图书阅读系统
图书阅读系统(2026-10-14)
全站移动端样式适配 首页分类 Tab 横滑容器,左右渐变滚动提示 ...
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;