Código HTML:
<form name="form1" method="post" action="xxx.php">
<table width="257" border="1" align="center">
<tr align="center">
<td colspan="3">Login</td>
</tr>
<tr>
<td width="97">login:</td>
<td width="144" colspan="2"><input name="login" type="text" id="login"></td>
</tr>
<tr>
<td>password:</td>
<td colspan="2"><input name="pass" type="password" id="pass"></td>
</tr>
<tr align="center">
<td colspan="3"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
Archivo xxx.php
Código PHP:
$sql="select * from usuarios where login='".$_POST['login']."' and pass='".$_POST['pass']."'";
$ressql=mysql_query($sql, $blog) or die(mysql_error());
if ($ressql){
echo "login concedido";
}
else{
echo "login no permitido";
}