okay 🙂
but one thing, this is not valid:
(do not use name parameter in dropdowns...just only in the select tag)
print "<option name='username' value=\"".$row["id"]."\">".
htmlspecialchars(stripslashes($row["username"])) ."</option>\r";
this is the format how you build a value->option pair for a dropdown:
print "<option value=\"".$row["id"]."\">". htmlspecialchars(stripslashes($row["username"])) ."</option>\r";