代码如下:为什么提交的时候总是显示:My small!
<?php
if ($_POST["age3"] < $_POST["age4"]) {
echo "My big!";
}else {
echo "My small!";
}
?>
<?php
if ($_POST["age3"] < $_POST["age4"]) {
echo "My big!";
}else {
echo "My small!";
}
?>
<head><title>PHPINFOMATION</title></head>
<body text="gray" link="red" alink="blue" vlink"green">
<form action="action1.php" method="post">
<input type"text" name="age_3">
<input type="text" name="age_4"><p>
<input type="submit">
<input type="reset">
</form>
</body>
</html>
<html>
<head><title>PHPINFOMATION</title></head>
<body text="gray" link="red" alink="blue" vlink"green">
<form action="action1.php" method="post">
<input type"text" name="age_3">
<input type="text" name="age_4"><p>
<input type="submit">
<input type="reset">
</form>
</body>
</html>action1.php文件为:<?php
if ($_POST["age3"] < $_POST["age4"]) {
echo "My big!";
}else {
echo "My small!";
}
?>为什么提交的时候总是显示:My small!