Hi,
I am trying to pre-populate a date form with $date. I can echo $date to the html page inside php tags fine, can’t use the variable $date in the date form itself.
Here is part of the html,
<?php echo($date); ?>
<form action="?<?php htmlout($action); ?>" method="post">
<input type="submit" value="<?php htmlout($button); ?>">
<p>Input date in form: <small>YYYY-MM-DD</small> <input type="date" name="date" <?php echo($date); ?> > <?php if (isset($_GET['setupNotes'])): ?><small>(Leave blank for todays date)</small></p><?php endif; ?>
<table>
<tr>
Here is an image of the html page and you can see that the date is being echoed fine.
The date variable is set in my controller file index.php to 1978-03-19 and I can echo it in the html file, but can’t get it to pre-populate the date form.