Just archiving this project from my Open Source Software class.

This commit is contained in:
2021-01-26 16:41:13 -06:00
commit d1bac9a520
50 changed files with 19232 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
$fileName = basename(__FILE__, ".php"); //grabs the file name and drops the extension
$fileName = ucwords($fileName); //capitalizes the first letter of every word
include("templates/signed-header.php");
?>
<form method="post" action="register.php" name="registerform">
<label for="login_input_username">Username</label>
<input id="login_input_username" type="text" pattern="[a-zA-Z0-9]{2,64}" name="user_name" required />
<label for="login_input_email">User email</label>
<input id="login_input_email" class="login_input" type="email" name="user_email" required />
<label for="login_input_password_new">Password</label>
<input id="login_input_password_new" class="login_input" type="password" name="user_password_new" pattern=".{6,}" required autocomplete="off" />
<label for="login_input_password_repeat">Repeat password</label>
<input id="repeatPassword" class="login_input" type="password" name="user_password_repeat" pattern=".{6,}" required autocomplete="off" />
<input type="submit" name="register" value="Register" />
</form>
<?php // show negative messages
if ($registration->errors) {
foreach ($registration->errors as $error) {
echo $error;
}
}
// show positive messages
if ($registration->messages) {
foreach ($registration->messages as $message) {
echo $message;
}
}
?>
</section>
</body>