duanchi4184 2014-07-13 20:59
浏览 45

从jquery datepicker获取包含日期的php变量

I have a jquery datepicker defined like this :

HTML/php:

<input id="datepicker" name="date" placeholder="Date" />

Javascript:

<script>
    $(document).ready(function() {
    $("#datepicker").datepicker();
    });
</script>

This works perfectly but i need to get the date in a php variable. I tried $_POST["date"] but this does not work. Could you help me ? Thanks !

  • 写回答

1条回答 默认 最新

  • dougang5993 2014-07-14 08:54
    关注

    The problem is solved, I don't really know where the problem came from. I still use $_POST["date"] to get the date, then I convert it from dd/mm/yyyy to yyyy-mm-dd (because my sql request requires this format) and it works.. Anyway, thanks everyone !

    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效