<?php

$a=4;

$b=2;

if($a>$b){

//header("location:test2.php");

echo "<script>alert('test2');location.href='test2.php';</script>";

}else {

echo "<script>alert('test3');location.href='test3.php';</script>";

 

}

?>