Otro ejemplo que os doy seria este:
Porque el
primer formulario no hace submit al pulsar ENTEr sobre cualquiera de sus input text pero en cambio en el
segundo si?
Código:
<html>
<body>
<form name="formulario2" id="formulario2" method="post" action="index.php">
<input type="hidden" name="modo" id="modo"/>
<div id="content">
<h3>Ingresa tu usuario</h3><table ><tr >
<td>Usuario:</td>
<td><input type="text" name="login" id="login" value="" class="input_medium" /></td>
</tr>
<tr >
<td>Contraseña:</td>
<td><input type="password" name="pass" id="pass" value="" class="input_medium" /></td>
</tr>
<tr >
<td></td>
<td><input type="button" onclick="goGo('login');" value="Aceptar" /></td>
</tr>
</table>
</div>
</form>
<form name="formulario" id="formulario" method="post" action="index.php" >
<input type="hidden" name="action" id="action"/>
Escribe: <input type="text" name="uno" id="uno"/>
</form>
</body>
</html>