Php 为什么我不能将输入类型日期的最小值设置为今天?
我想将min date设置为今天,但它不起作用 你能纠正我吗 我的代码:Php 为什么我不能将输入类型日期的最小值设置为今天?,php,date,input,Php,Date,Input,我想将min date设置为今天,但它不起作用 你能纠正我吗 我的代码: echo '<input type="date" name="date" min="'.<?php echo date("Y-m-d"); ?>.'">'; echo'您不需要在已经存在的标记中使用 您的日期没有打印到输入中 echo "<input type='date' name='date' min='".date('Y-m-d')."'>"; echo”“; 我还交换了引号
echo '<input type="date" name="date" min="'.<?php echo date("Y-m-d"); ?>.'">';
echo'您不需要在已经存在的
标记中使用
您的日期没有打印到输入中
echo "<input type='date' name='date' min='".date('Y-m-d')."'>";
echo”“;
我还交换了引号,这样您就可以在echo中使用变量,而不涉及更多内容