initial code commit
This commit is contained in:
35
views/register.php
Normal file
35
views/register.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
// views/register.php
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
// Handle registration logic here
|
||||
// Use UserManager to create a new user
|
||||
// Redirect to login page on success
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Register</title>
|
||||
<link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h2>Register</h2>
|
||||
<form method="POST" action="/register">
|
||||
<div class="form-group">
|
||||
<label for="username">Username:</label>
|
||||
<input type="text" class="form-control" id="username" name="username" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" class="form-control" id="password" name="password" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">Register</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user