2017-02-23 54 views
0

在此先感谢您的帮助!

我在通过多日期选择器日历中的$ _POST发送日期时遇到了问题......它可能是非常简单的东西,我无法看到!

代码在前端:

<form method="post" action="add_new_date.php"> 
    <div id="simpliest-usage" name="simpliest-usage"></div> 
    <script> 
     $('#simpliest-usage').multiDatesPicker(); 
    </script> 
    <input type="submit"> 
    </form> 

日历显示细。

代码的操作页面上:

<?php 
    echo $_POST['simpliest-usage']; 
    ?> 

只是想先在屏幕上显示出来,确保正确的日期是经过!

任何帮助,非常感谢。

非常感谢!的

回答

1
<div id="simpliest-usage" name="simpliest-usage"></div> 
// change this line 

<input type ="text" id="simpliest-usage" name="simpliest-usage" readonly/> 
+0

绝对解决它,谢谢。试图让日历显示在页面上,尽管没有将其嵌入到文本字段中......任何建议? – Dan

0

再看看到你的代码,而不是使用文本框中,您使用的名字一个div simpliest-usage 只是一个表单元素文本框代替它,它会通过邮寄方式发送数据

+0

感谢阿布舍克:) – Dan