帮我生成精美的html的需要密码访问的页面
下面我们将创建一个简单的页面,只有一个需要用户输入密码才能访问的内容区域。
```html
<html>
<head>
<title>Password Protected Page</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Welcome to the password protected page.</p>
<form action="checkpass.php" method="POST">
Password: <input type="password" name="password">
<input type="submit">
</form>
<?php
if (isset ($_POST['password']) && $_POST['password'] == 'YourPassword') {
?>
<h2>Successful!</h2>
<p>Congratulations, you have successfully entered the password!</p>
<?php
}
?>
</body>
</html>
```
帮我生成精美的html的需要密码访问的页面