2023-08-03 15:31:38 +08:00
|
|
|
<?php
|
|
|
|
include 'NoDirectPhpAcess.php';
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
include 'Header.php';
|
|
|
|
?>
|
|
|
|
|
2023-08-10 22:41:59 +08:00
|
|
|
<br><br><br>
|
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
<div class="container">
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-10 22:41:59 +08:00
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-5"></div>
|
|
|
|
|
|
|
|
<div class="col-md-5">
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
<form method="post" action="Script.php" id="signup_form">
|
2023-08-10 22:41:59 +08:00
|
|
|
<legend>Sign up</legend>
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
<input type="hidden" name="form_signup" value="true" />
|
2023-08-10 22:41:59 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
Full Name
|
2023-08-10 22:41:59 +08:00
|
|
|
<input type="text" name="fullname" placeholder="Your full name" class="form-control" value="<?php echo $_SESSION['user_fullname']; ?>" required="required" id="full_name"/> <br>
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
Student ID
|
2023-08-10 22:41:59 +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" id="student_id"> <br>
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
Email
|
2023-08-10 22:41:59 +08:00
|
|
|
<input type="text" name="email" placeholder="Email" class="form-control" value="<?php echo $_SESSION['user_email']; ?>" required="required" id="email" /> <br>
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
Password <label class="form-text">must include uppercase and lowercase letters, digits and special characters</label>
|
2023-08-10 22:41:59 +08:00
|
|
|
<input type="password" class="form-control" name="password" placeholder="Enter password" required="required" id="password1" /> <br>
|
2023-08-03 15:31:38 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
Confirm Password
|
2023-08-10 22:41:59 +08:00
|
|
|
<input type="password" class="form-control" name="confirmpassword" placeholder="Confirm password" required="required" id="password2" /> <br>
|
2023-08-06 17:43:36 +08:00
|
|
|
<br>
|
|
|
|
<button type="submit" class="btn btn-primary" id="signup_btn">Sign up</button>
|
2023-08-10 22:41:59 +08:00
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
<?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
|
|
|
|
2023-08-06 17:43:36 +08:00
|
|
|
</form>
|
|
|
|
</div>
|
2023-08-03 15:31:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-08-08 15:02:26 +08:00
|
|
|
|