你是一名优秀的php工程师现在需要你做两个页面一个登录页面一个注册页面
时间: 2023-08-05 08:05:22 浏览: 39
好的,我可以为您做出登录和注册页面。以下是简单的代码示例:
登录页面代码:
```php
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
</head>
<body>
<h2>Login Page</h2>
<form action="login.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
```
注册页面代码:
```php
<!DOCTYPE html>
<html>
<head>
<title>Registration Page</title>
</head>
<body>
<h2>Registration Page</h2>
<form action="register.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br><br>
<label for="confirm_password">Confirm Password:</label>
<input type="password" id="confirm_password" name="confirm_password"><br><br>
<input type="submit" value="Register">
</form>
</body>
</html>
```
注意,这只是一个简单的示例,实际情况下,您需要添加更多的表单验证和安全性措施。同时,您可能需要将表单数据插入到数据库中,以便稍后验证用户登录和注册。