I'm using a SELECT that automatically refreshes the page after the selection. However it returns with the SELECT in the initial position, when it would be desirable that the selected option had already been set in the control.
I found a code on the internet but I can not seem to make it work:
echo "<option value='premorc.php?fnc=". $fnc . "&ans=" . $linha . "&bandorc=" . $band . "' if ($bandorc==$band){ echo 'SELECTED';} '>" . $bandeira . "</option>";