I want to restrict date input in my form. I'm using PHP and HTML to code.
<?php
echo '<input type="date" name="doc" value="' . date("d-m-Y") . '" min="11-05-2014" max="' . date("d-m-Y") . '"/>';
?>
I've tried this post. It has a solution using jQuery, but I don't want to use jQuery.