I am making a script that will allow admins to ban IPs. I am currently implementing the ban length system, however I am trying to echo the lift date next to each select option.
Here is my HTML for the dropdown select:
<strong>Select Ban Length</strong>
<div class="select-style">
<select>
<optgroup label="Temporary Ban Options">
<option value="1">1 Day</option>
<option value="3">3 Days</option>
<option value="7">7 Days</option>
<option value="14">14 Days</option>
</optgroup>
<optgroup label="Permanent Ban Options">
<option value="PERMANENT">Permanent - Never Lift Ban</option>
</optgroup>
</select>
</div>
What I am asking is how can I echo the lift date next to each item? For example:
I have started with <?php echo date('Y-m-d H:i:s'); ?>
to get the current date but how can I, as shown in the image above achieve something similar where the lift date is beside the ban length?