I have a form input which is a date input. If someone selects a date from the form input i want this date to be repeated again.further down the page.
my code for form input is
<label for="date">Date Of Agreement.</label>
<input type="date" name="date" value="<?php if (isset($_POST['date'])) { echo htmlspecialchars($_POST['date']); } ?>">
The form is sent to my email but i want to copy the date submitted in the form input further down the page to confirm.
so for example if a user inputs 30/12/2022 from the date picker then further down the form (same page) i want to display something like:
This agreement was made on 30th December 2022
using php coding for the page.
thanks