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