<html>
<body style="font-size:12px; color:#000099; font-family:'宋体'">
<form action="" method="post">
Users:<input name="user" type="text" size="10">
<br>
password :<input name="pwd" type="password" size="10">
<br>
<input style="background:#0033FF; border:thin:"type="submit" nam"sub" valur="Check">
</form>
<?php
if($_POST['sub'])
{
if($_POST['user']=='admin' and $_POST['pwd']='admin')
{
echo "Current VIP user";
}
else
{
echo "You are a visitors";
}
}
?>
</body>
</html>
if..else 语句应用
最新推荐文章于 2025-06-10 16:33:50 发布