联系官方销售客服
1835022288
028-61286886
一个页面上有2个网站表单,然后一开始提示myform 错误id,然后我把这个提及的ID换了一下,
{php extract(dr_get_form_post_value('gezj'))} <form action="" class="form-horizontal layui-form" method="post" name="myform" id="myform1"> {$form} <div class="fc-form-body"> {$myfield} {$diyfield} {$sysfield} {if $is_post_code} <div class="form-group"> <label class="control-label col-md-2">{dr_lang('验证码')}</label> <div class="col-md-9"> <label> <div class="form-recaptcha"> <div class="input-group"> <input type="text" class="form-control" name="code"> <div class="input-group-btn fc-code"> {dr_code(120, 35)} </div> </div> </div> </label> </div> </div> {/if} </div> <div class="portlet-body form myfooter"> <div class="form-actions text-center"> <button type="button" onclick="dr_ajax_submit('{$post_url}', 'myform', '2000', '{$rt_url}')" class="layui-btn layui-btn-danger"> <i class="fa fa-save"></i> 立即提交</button> </div> </div> </form>
这是第一个表单提交的,
id="myform1"
我把他后面加一个1,然后第二个,
{php extract(dr_get_form_post_value('gezj'))} <form action="" class="form-horizontal layui-form" method="post" name="myform" id="myform"> {$form} <div class="fc-form-body"> {$myfield} {$diyfield} {$sysfield} {if $is_post_code} <div class="form-group"> <label class="control-label col-md-2">{dr_lang('验证码')}</label> <div class="col-md-9"> <label> <div class="form-recaptcha"> <div class="input-group"> <input type="text" class="form-control" name="code"> <div class="input-group-btn fc-code"> {dr_code(120, 35)} </div> </div> </div> </label> </div> </div> {/if} </div> <div class="portlet-body form myfooter"> <div class="form-actions text-center"> <button type="button" onclick="dr_ajax_submit('{$post_url}', 'myform', '2000', '{$rt_url}')" class="layui-btn layui-btn-danger"> <i class="fa fa-save"></i> 立即提交</button> </div> </div> </form>
现在第二个正常可以提交了。但是第一个,一直提示验证码错误,怎么刷新 都是提示验证码错误不知道怎么回事了