html input date php date today

27

how assign current date to input type date html in php -

<input type="date" value="<?php echo date("Y-m-d"); ?>">

Comments

Submit
0 Comments