20251120-3
index.html
<html> <head> <title>password Bord</title> </head> <body> <center> <h1><b>password Bord</b></h1> <hr> <form action="password.cgi" method="POST"> パスワード<br> <input type="password" name="password"><br> <input type="submit" value="送信"> <input type="reset" value="リセット"> </form> </center> </body> </html> password.cgi
print <<END;
<form action=”bord.cgi” method=”POST”>
記入者<br>
<input type=”text” name=”name”><br>
タイトル<br>
<input type=”text” name=”title”><br>
こんてんつ<br>
<textarea name=”contents” rows=”4″ cols=”40″></textarea><br>
<input type=”hidden”name=”pas” value=”$password”>
<input type=”submit” value=”送信”>
<input type=”reset” value=”リセット”>
</form>
<hr>
END
print”</body>\n”;
print”</html>\n”;
exit;
}else{
print”パスワードまちがってるよ~\n”;
}
}
print”</body>\n”;
print”</html>\n”;
exit;

