Set a max date attribute for date input fields to prevent/discourage them going over 4 characters (client side validation)

This commit is contained in:
Marcus Hill
2022-12-17 18:03:53 +00:00
parent 016d666dda
commit 51792a1a2f
50 changed files with 75 additions and 75 deletions

View File

@@ -82,7 +82,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-calendar-day"></i></span>
</div>
<input class="form-control" type="date" min="<?php echo date("Y-m-d"); ?>" name="start_date" required>
<input class="form-control" type="date" name="start_date" min="<?php echo date("Y-m-d"); ?>" max="2999-12-31" required>
</div>
</div>