implemented hashbrown assignment.

This commit is contained in:
2025-04-17 14:58:51 -06:00
parent 5e88f52c21
commit d1097bedb3
157 changed files with 1038 additions and 12514 deletions
View File
View File
View File
View File
+43
View File
@@ -0,0 +1,43 @@
<!doctype html>
<html lang="en">
<head>
<title>Dummy Title</title>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
<h1>Hello cruel world!</h1>
<?php
$user = 'beavis';
$pass = 'pass';
if (isset($_POST['username']) && isset($_POST['password'])) {
if ($_POST['username'] == $user && $_POST['password'] == $pass)
echo '<h1>Access Granted</h1>';
else
echo '<h1>Access Denied</h1>' . login_form();
} else
echo login_form();
function login_form()
{
$form = '
<form method="post">
<label for"username">Username:</label>
<input id="username" name="username" required>
<label for="password">Password:</label>
<input id="password" type="password" name="password" required>
<input type="submit">
';
return $form;
}
?>
</body>
</html>
View File
View File