Tengo un problema con las aperturas y cierre de etiquetas en un php, tengo un lío de aupa
<?php session_start();
$dbhost = "localhost";
$dbuser = "corbachu";
$dbpass = "xxx";
$conx = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db("corbachu_percy", $conx)or die ('Error al seleccionar la Base de Datos: '.mysql_error());;
if(trim($_POST['email']) != "" && trim($_POST['password']) != "")
{
$sql = 'SELECT password, email, username FROM usuarios WHERE email=\''.$email.'\' and password=\''.$password.'\'';
//$result = mysql_query('SELECT password, email, username FROM usuarios WHERE email=\''.$email.'\' and password=\''.$password.'\'');
$result = mysql_query($sql);
if($row = mysql_fetch_array($result)){
if($row['password'] == $password){
$_SESSION['fp_username'] = $row['username'];
$_SESSION['email'] = $row['email'];
$_SESSION['fp_username'];
?>
<SCRIPT LANGUAGE="javascript">
location.href = "zona.php";
</SCRIPT>'
}else{
location.href = "errorPassword.html";
<?
}
}else{
?> location.href = "errorPassword.html";
<? }
mysql_free_result($result);
}else{
echo 'Debe especificar un usuario y password';
}
mysql_close();
?>
Cuando la password es incorrecta se me muestra literalmente en pantalla "errorPassword.html"
Muchas gracias