LRR/signup.php

47 lines
1.6 KiB
PHP
Raw Normal View History

2023-08-03 15:31:38 +08:00
<?php
include 'NoDirectPhpAcess.php';
?>
<?php
include 'Header.php';
?>
<div class="container">
2023-08-03 15:31:38 +08:00
<div class="row justify-content-md-center">
<div class="col-md-auto">
2023-08-03 15:31:38 +08:00
<form method="post" action="Script.php" id="signup_form">
2023-08-03 15:31:38 +08:00
<input type="hidden" name="form_signup" value="true" />
Full Name
<input type="text" name="fullname" placeholder="Your full name" class="form-control" value="<?php echo $_SESSION['user_fullname']; ?>" required="required" id="full_name"/>
2023-08-03 15:31:38 +08:00
Student ID
<input type="text" name="user_student_id" placeholder="Entre your student ID" class="form-control" value="<?php echo $_SESSION['user_student_id']; ?>" required="required" id="student_id">
2023-08-03 15:31:38 +08:00
Email
<input type="text" name="email" placeholder="Email" class="form-control" value="<?php echo $_SESSION['user_email']; ?>" required="required" id="email" />
2023-08-03 15:31:38 +08:00
Password <label class="form-text">must include uppercase and lowercase letters, digits and special characters</label>
<input type="password" class="form-control" name="password" placeholder="Enter password" required="required" id="password1" />
2023-08-03 15:31:38 +08:00
Confirm Password
<input type="password" class="form-control" name="confirmpassword" placeholder="Confirm password" required="required" id="password2" />
<br>
<button type="submit" class="btn btn-primary" id="signup_btn">Sign up</button>
<?php
error_reporting(E_ALL);
if (isset($_SESSION['info_signup'])) {
echo '<hr><div class="alert alert-danger" role="alert">' . $_SESSION['info_signup'] . '</div>';
$_SESSION['info_signup'] = null;
}
?>
2023-08-03 15:31:38 +08:00
</form>
</div>
2023-08-03 15:31:38 +08:00
</div>
</div>
2023-08-08 15:02:26 +08:00
<?php include 'Footer.php';?>