douan3019 2017-07-04 12:47
浏览 44

如何使用PHP在我的页面中发布Telerik Calendar选定值

hey everyone i am new in telerik i tried to post telerik calendar vselected value on some page but its not working how do i post telerik calendar selected value in my page using php.

here is my code below...

<!DOCTYPE html>
<html>
  <head>
    <link href="styles/kendo.common.min.css" rel="stylesheet" type="text/css"/>
    <link href="styles/kendo.default.min.css" rel="stylesheet" type="text/css"/>
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.web.min.js"></script>
  </head>
  <body>
    <form method="post">
      <?php require_once 'wrappers/php/lib/Kendo/Autoload.php'; ?>
      <h2>Date Picker</h2>
      <?php // Instantiate a new instance of the DatePicker class and specify its 'id' $datepicker = new \Kendo\UI\DatePicker('datepicker'); // Configure the datepicker using the fluent API $datepicker->start('year') ->format('MMMM yyyy'); // Output the
      datepicker HTML and JavaScript by echo-ing the result of the render method echo $datepicker->render(); ?>
      <h2>Calendar</h2>
      <?php
        $calendar = new \Kendo\UI\Calendar('calendar');

        echo $calendar->render();
      ?>
      <input type="submit" value="submit" name="sub">
      <?php
        if (isset($_POST['sub'])) {
            $val=$_POST['datepicker'];
            echo $val;

        //    $val=$_POST['calendar'];
        //    echo $val;
        //return $val;
        }
      ?>
    </form>
  </body>
</html>

my datepicker is working but calendar is not working any kind of example can help me.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 有赏,i卡绘世画不出
    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码