Existe alguna funcion que me permita:
1) Verificar datos (username y password tengan valores).
2) Que datos (username y password), sean verificados directamente en una base de datos.
3) Que los datos (username y password), al no existir desplegar mensajes de alerta segun sean los casos. ("No existe usuario", "Password no pertenece a usuario", etc.).
Código PHP:
<form action="index.php" name="formulario" method="POST" onsubmit="[B]chequeo(); [/B]return false;">
<table celpadding="0" celspacing="0" class="dialog">
<tr>
<td style="padding-left: 10px;"> Usuario:</td>
<td>
<input type="text" name="username" id="username"/>
</td>
</tr>
<tr>
<td style="padding-left: 10px;"> Contraseña:</td>
<td>
<input type="password" name="password" id="password"/>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: right;">
<input name="btnSubmit" type="submit" value="Entrar"/>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center; color: black;"> </td>
</tr>
</table>
</form>
Les agradezco cualquier colaboración y de ante mano muchas gracias...