initial code commit

This commit is contained in:
2024-02-09 20:52:11 -06:00
parent f5d267ea98
commit 532df6b9be
18 changed files with 583 additions and 1 deletions

35
views/register.php Normal file
View 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>