I am using a date input type to select a date in my PHP project.
Now everytime I submit the form I want to display the date in the input that has been selected.
This is what I've tried:
<?php $date = $_GET['date']; ?>
<input placeholder="<?php $date ?>" type="date" name="date" id="date" />
But unfortunately this doesn't seem to work.
Anyone has any idea if my goal is possible?
Many thanks in advance!
$_GET['date']? Did you var_dump it? Maybe it is an array from some other form?<?php echo $date; ?>instead.