Código
<!doctype html> <html lang="en" > <head> <meta charset ="UTF-8"> <link rel="stylesheet" href="css/main.css"/> </head> <body> <div id="applicationform"> <form action="login.php" methos="POST"> <input type="mail" id="user" name="User" placeholder="Username" autocomplete="off"> <input type="password" id="pass" name="Pass" placeholder="Password"> <input type="submit" id="fade2" value="login" class="login" href="index.html"> </form> </div> </body> </html>
Código
<?php $User = $_REQUEST['User']; $Pass = $_REQUEST['Pass']; $estandar = mysql_query("SELECT * FROM usuario where login = '".$User."' and pass = '".$Pass."'",$conexion); $admin = mysql_query("SELECT * FROM usuario where login = '".$User."' and pass = '".$Pass."'",$conexion); { { } ?>