我有一个天空日期选择器,我似乎无法提取所选日期的值。其他一切都有效。 HTML是:
<div class="row">
<section class="col col-5 col-md-offset-1">
<div id="inline-start" name="pocetni"></div>
</section>
<section class="col col-5">
<div id="inline-finish" name="zavrsni"></div>
</section>
</div>
我已经尝试过了:
<?php
/* some previous code that gets other elements and works */
$startDate = $_POST['pocetni'];
$endDate = $_POST['zavrsni'];
/*some print code for other elements*/
print("<strong>Datum dolaska:</strong> $startDate<br/>");
print("<strong>Datum odlaska:</strong> $endDate<br/>");
?>
谢谢!