if(validación) { header("Location:unapagina.php"); exit; } else { header("Location:otrapagina.php"); exit; }