Validated Entries In PHP Loop
Hello,
I create my year select field with a for loop.
How can I make it selected with the Validation Entries Form Element.
<select name="year" id="year">
<option value="0">Year</option>
<?php
for($y=date('Y'); $y>=date('Y')-100; $y--){ ?>
<option value="<?php echo $y; ?>"><?php echo $y; ?></option>
<?php } ?>
</select>
Cheers,
Denis