Hey all, I have a date loop that I would like to use for a select list, but I want the selected date to stay selected once you click submit (as it takes you back to the same page once you submit). I cant seem to get this one to run.. The dates transfer once the page is submitted and I can echo the data and it looks correct, but the dates are never selected.. any ideas?
for($j = 3; $j < 9; $j++) {
$year = "200".$j;
$timestamp_date = $year."0400000000";
if ('$timestamp_date' == '$fisyr_select') {
echo "<option name='fisyr_select' value='$timestamp_date' selected>Selected Year, $year</option>";
}
echo "<option name='fisyr_select' value='$timestamp_date'>Listed Years, $year</option>";
}
echo "</select></td>";