Código HTML:
<table> <form action="login.php" method="POST"> <tr> <td colspan="2"> Inicie Sesion </td> </tr> <tr> <td width="20%"> Usuario: Contraseña: </td> <td> <input type="text" name="user" size="15" /> <input type="password" name="pass" size="15" /> </td> </tr> <tr> </tr> </table> <input type="submit" onclick = "this.form.action='login.php';" value="Login" class="boton" /> <input type="submit" onclick = "this.form.action='registrar.php';" value="Registrarse" class="boton" /> </form><br /> <font class="errorlogin">{ERROR_LOGIN}</font>