if($_POST['nombre']=='Juan'){ header('location:juan.php'); }elseif($_POST['nombre']=='Maria'){ header('location:maria.php'); }