这个代码为什么没法运行呢? 网页直接无法显示php function yx ($s1,$s2,$b) { if($b=="+") return ($s1+$s2); else if ($b=="-") return ($s1-$s2); else if ($b=="*") return ($s1*$s2); else return($s1/$s2); } if(isset($_POST['button'])) $s1=$_POST["number1"]; $s2=$_POST["number2"]; $b=$_POST["lable"]; if(is_nameric($s1)&&is_nameric($s2)) $r=yx($s1,$s2,$b); echo "结果为".$r; else echo "请重新输入"; ?>计算
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
等上机了再来回答你