<html>
<head>
<title>Performance evaluation criteria </title>
</head>
<body style="font-size:16px; corlor:#000099; font-family:'宋体'">
<table border="1" bordercolor="#000099" bordercolorlight="#000099"
cellspacing="0">
<tr>
<td>
<form action="" method="post">
Please input test performance: <input type="text" size="10" name="text"
> <input type="submit" name="sub" valur="Evaluation">
</form>
<?php
if($_POST[sub])
{
if($_POST[text]==100)
{
echo "Performance A";
}
if($_POST[text]>60 and $_POST[text]<100)
{
echo "Performance B";
}
if($_POST[text]<60)
{
echo "Performance C";
}
}
?>
</td>
</tr>
</table>
</body>
</html>
IF语句应用
最新推荐文章于 2022-09-21 00:00:33 发布