I want to disable input date so that user can edit the current value in the input but i can not retrieve the value if i disable the input.
<form action="test123123.php" method="post">
<input type="date" name="datap" value="<?php echo date('Y-m-d'); ?>" disabled>
<input type="submit" name="ok">
</form>
<?php
if(isset($_POST['ok'])){
echo $_POST['datap'];
}
This code returns the error that can not find 'datap' and i understand that it gives this error because can not see the input. How can i disable the input but be able to retrive value. The code above is just an example. I am interested on a general application not local.
Update:
i tryed with min and max in the same day but the user has to use the sliders to lock the chooce