联系官方销售客服

1835022288

028-61286886

求助 版主:论坛审计组
从首页写了一个表单提交到新建模块的栏目页面无法接收到的日期数
类型:迅睿CMS 更新时间:2019-11-27 09:01:31

从首页写了一个form表单 提交到新建模块的栏目页面 无法接收到post的日期数据 具体代码和情况如下:

日期使用的laydate 插件

index页面:
 <form action="http://127.0.0.1/index.php?s=rentcar&c=category&id=1" enctype="multipart/form-data" method="post">
                    	<input type="hidden" name="{csrf_token()}" value="{csrf_hash()}" />
                            <label>座位数</label>
                            <select name="seats">
                                <option value="5">5座</option>
                                <option value="718">7-18座</option>
                                <option value="2032">20-32座</option>
                                <option value="3257">32-57座</option>
                         
                                 
                            </select>
                        </div>
                        <div class="search-group">
                            <label>租期</label>
                            <div class="search-date" style="left:56px;top:0">

                                <input type="text" name ="date_start" id="cartime" placeholder="请选择取车时间"/>
                                
                            </div>
                            <div class="search-date" style="left:300px;top:0">
                                <input placeholder="请选择换车时间" name ="date_end" type="text"   id="returntime"/>
                               
                            </div>
                            <img src="{HOME_THEME_PATH}/images/search-to.jpg" class="search-to" />
                        </div>
                        <button type="submit" >立即选车</button>
                        </form>


category.html 页面代码
{php}
$date_s=$_POST['date_start'];
$date_e=$_POST['date_end'];
$date_seat=$_POST['seats'];
var_dump($date_s);
var_dump($date_e);
var_dump($date_seat);
{/php}


现在提交表单发现日期数据字符串无法接收122.png

回帖