I've been struggling with this for at least an hour to no avail. I'm sure the answer is simple, but I can't figure it out. The foreach loop is what I'm trying to accomplish, but it doesn't work. The for loop works and renders fine. Please help! - Jon
<div class="td"><select name="vehYear">
<?php
foreach ($veh_year_array as $item)
{?>
<option value="<?php echo $item;?>"><?php echo $item;?></option>
<?php}
?>
<?php
for ($i = date('Y'); $i > 1950; $i--) {
echo "<option>$i</option>";
}
?>
</select></div>
$veh_year_arrayis populated? maybe try pasting the output ofvar_dump($veh_year_array)?