<?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>";
}
?>
时间: 2024-11-12 08:41:55
<?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>";
}
?>