パスワード処理
entrance.php
<html>
<head>
<title>テストページ</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
$okpass = "test";
if($_POST['password']==$okpass){
print "入場おめでとう!パスワードは正しい。";
}else{
print "パスワードがちがうようです。";
}
?>
</body>
</html>
補足情報
非常に簡単なパスワード処理です。実用的ではないですが、
$_POST[ ]の使い方再確認ということで・・・。