if($_POST['campo1']==$_POST['campo2']) header("Location:pagina1.php"); else header("Location:pagina2.php");