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 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog
    • ¥15 Excel发现不可读取的内容
    • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题