Código HTML:
<head> <body> <center><u>Registro de Partido</u><br><br> <form method="POST" action="grabar.php"> Local: <?php mysql_connect("localhost","root",""); mysql_select_db("equipos"); $consulta="(select nombre from equipo order by nombre asc );"; $result=mysql_query($consulta); echo'<select name="local">'; while($fila=mysql_fetch_row($result)){ echo "<option>".$fila['0']."</option>"; } ?> Goles: <input type="text" name="txtglocal" size="2" required><br><br> Visita: <?php mysql_connect("localhost","root",""); mysql_select_db("equipos"); $consulta="(select nombre from equipo order by nombre asc );"; $result=mysql_query($consulta); echo'<select name="visita">'; while($fila=mysql_fetch_row($result)){ echo "<option>".$fila['0']."</option>"; } ?> <br><br> Goles: <input type="text" name="txtgvisita" size="2"><br><br> <input type="submit" value="Grabar"> </form> </center> </body> </head>

Gracias