예제 #1
0
function logar()
{
    $f = array();
    $f['usuario'] = $_POST['usuario'];
    $f['senha'] = $_POST['senha'];
    $fdao = new cliente_dao();
    $resp = $fdao->logar($f);
    if ($resp != null) {
        Header("Location: ../area_do_cliente.php?nav=projetos");
    } else {
        Header("Location: ../login.php?exist=false");
    }
}