Thanks๐
I have managed to get it working with
$options = array('',0,2,3,4,5,6,7,8);
foreach ($options as $option)
{
echo '<option value="' . $option . '"' . (isset($_POST['exercise']) && $_POST['exercise'] == $option ? ' selected' : '') . '>' . $option . '</option>';
}
it works ok, but if you don't make a selection first time on submit it will select 0 for you, can't work out why but am very pleased it keeps the value through the rest of the validation.
Got worse probs now anyway- is this normal to think your finished and then bang you found another bug!
thanks for you help ๐