<form method=”post” action=”<?php echo $PHP_SELF; ?>”>
a: :<input type=”text” name=”a”><BR>
b: <input type=”text” name=”b”><BR>
<input type=”submit” value=”提交”>
<br></form>
global $a;
global $b;
if ($a > $b ){
echo “a比b大”;
}elseif ($a == $b){
echo “a等于b”;
}else{
echo “a比b小”:
}
?>
本文地址:http://com.8s8s.com/it/it34715.htm