LRR/signup.php

55 lines
2.8 KiB
PHP
Raw Permalink Normal View History

<?php
include 'NoDirectPhpAcess.php';
?>
<?php
include 'Header.php';
?>
<div class="album py-5 bg-white">
<div class="container bg-white">
<div class="col-md-6 panel panel-primary" >
2021-10-20 23:14:33 +08:00
<br>
2021-10-20 23:14:33 +08:00
<h4 class="list-group-item active"> Please fill in each field below </h4>
<div class="list-group-item">
<div class="panel panel-primary">
2021-10-20 23:14:33 +08:00
<form method="post" action="Script.php">
<input type="hidden" name="frm_signup_2" value="true" />
2022-06-16 18:28:12 +08:00
<p>Full Name</p>
2021-10-20 23:14:33 +08:00
<input type="text" name="fullname" placeholder="Your full name" class="form-control" value="<?php echo $_SESSION['user_fullname']; ?>" required="required" />
2022-06-16 18:28:12 +08:00
<p>Student ID</p>
2021-10-20 23:14:33 +08:00
<input type="text" name="user_student_id" placeholder="Entre your student ID" class="form-control" value="<?php echo $_SESSION['user_student_id']; ?>" required="required">
2022-06-16 18:28:12 +08:00
<p>Email</p>
2021-10-20 23:14:33 +08:00
<input type="text" name="email" placeholder="Email" class="form-control" value="<?php echo $_SESSION['user_email']; ?>" required="required" />
2022-06-16 18:28:12 +08:00
<p>Password (<i>must include uppercase and lowercase letters, digits and special characters</i>)</p>
<input id="password" type="password" pattern="^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{4,}$" title="Password must have at least characters that include lowercase letters, uppercase letters, numbers and sepcial characters (e.g., !?.,*^)." class="form-control" name="password" placeholder="Enter password" required="required" onchange="if(this.checkValidity()) form.password_two.pattern = this.value;" />
2022-06-16 18:28:12 +08:00
<p>Confirm Password</p>
<input id="password_two" type="password" pattern="^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{4,}$" title="Password must have at least characters that include lowercase letters, uppercase letters, numbers and sepcial characters" class="form-control" name="confirmpassword" placeholder="Confirm password" required="required" onchange="this.setCustomValidity(this.validity.patternMismatch ? 'Please enter the same Password as above' : '');" />
2021-10-20 23:14:33 +08:00
<br>
2022-06-16 18:28:12 +08:00
<input type="submit" class="btn btn-primary" value="Sign up">
2021-10-20 23:14:33 +08:00
<?php
error_reporting(E_ALL);
if (isset($_SESSION['info_signup2'])) {
echo '<hr><div class="alert alert-danger" role="alert">' . $_SESSION['info_signup2'] . '</div>';
$_SESSION['info_signup2'] = null;
}
?>
</form>
</div>
</div>
</div>
</div>
</div>