Good evening 🙂
I'm trying to get values from the DB checked in to radio buttons.
I've already tried several lame options, with bad luck.
Is my code making any sense at all? Guess I'm a bit lost again...
I'll be pleased, if someone can share their ideas.
//the form echoed
//and the radio buttons
echo " <form>
<input type=\"radio\" name=\"usertype\" value=\"9\""; if ($usertype =='9'){$checked='checked';}else{$checked=null;} echo "\"$checked\"\">Admin
<input type=\"radio\" name=\"usertype\" value=\"1\""; if ($usertype=='1'){$checked='checked';}else{$checked=null;} echo "\"$checked\"\">User </form>";