<?php
session_start();
session_unset();
session_destroy();
?>
<html>
<head>
<style type="text/css">
<!--
body {
background-color: #FFFFCC;
}
-->
</style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<form name="form1" action="redireccionar.php" target="centro" method="post">
<div align="center">
<p> </p>
<p> </p>
<p align="center"> </p>
<p align="center"><strong>Usuario:
<input type="text" name="usuario" value="" >
</strong></p>
<p align="center"> </p>
<p align="center"><strong> Clave:
<input type="text" name="clave" value="" >
</strong></p>
<p>
<strong>
<label></label>
</strong> </p>
<p> </p>
<p align="right">
<input type="submit" name="boton" value="Entrar">
</p>
</div>
</form>
</body>
</html> pero no ve dirige donde tiene que ir.
Código para redireccionar
<?php
include_once("conexion.php");
mysql_select_db($database,$cnn);
$query_datList="SELECT codemp,login,nombre,pass FROM empleados";
$res=mysql_query($query_datList,$cnn) or die (mysql_error());
if($_POST['pass'] = $sql['pass'] && $_POST['login']= $sql ['login']) {
echo "<a href='marcoentero.html'></a>";
}
else {
echo "<a href='error.html'> </a>";
}
?>