Utiliza la sintaxis alternativa e itera con un foreach
Código PHP:
Ver original//Formulario
<select name="year">
<?php foreach(range(2000, 2010) as $year): ?>
<option value="<?php echo $year?>">
<?php echo $year?>
</option>
<?php endforeach; ?>
</select>
//recibes datos
<?php $_POST['year'] = 2005; ?>
//vuelves a crear el select
<select name="year">
<?php foreach(range(2000, 2010) as $year): ?>
<option value="<?php echo $year?>"<?php if($year == $_POST['year']) echo ' selected'?>>
<?php echo $year ?>
</option>
<?php endforeach; ?>
</select>