2023-01-03 06:41:23 +00:00
|
|
|
<?php
|
2023-03-07 01:23:47 +00:00
|
|
|
|
2023-01-03 06:41:23 +00:00
|
|
|
include "config/constants.php";
|
|
|
|
|
|
|
|
//get beck form DATA IF THERE IS A REGISTRATION ERROR
|
|
|
|
$firstname=$_SESSION['signup-data']['firstname'] ?? null;
|
|
|
|
$lastname=$_SESSION['signup-data']['lastname'] ?? null;
|
|
|
|
$username=$_SESSION['signup-data']['username'] ?? null;
|
|
|
|
$email=$_SESSION['signup-data']['email'] ?? null;
|
|
|
|
$createpassword=$_SESSION['signup-data']['createpassword'] ?? null;
|
|
|
|
$confirmpassword = $_SESSION['signup-data']['confirmpassword'] ?? null;
|
2023-03-07 01:23:47 +00:00
|
|
|
|
|
|
|
|
2023-01-03 06:41:23 +00:00
|
|
|
//delete signup data session
|
|
|
|
unset($_SESSION['signup-data']);
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2022-12-30 03:25:40 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>UNDEREMPLOYED</title>
|
|
|
|
<!-- CUSTOM STYLESHEET -->
|
2023-01-03 06:41:23 +00:00
|
|
|
<link rel="stylesheet" href="<?= ROOT_URL ?>css/style.css">
|
2022-12-30 03:25:40 +00:00
|
|
|
<!-- ICONSCOUT CDN -->
|
|
|
|
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css">
|
|
|
|
<!-- GOOGLE FONT(MONTSERATE) -->
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,800;1,700&display=swap" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="form__section">
|
|
|
|
|
|
|
|
<div class="container form__section-container">
|
|
|
|
<h2>Sign Up</h2>
|
2023-01-03 06:41:23 +00:00
|
|
|
<?php
|
|
|
|
if(isset($_SESSION['signup'])): ?>
|
|
|
|
<div class="alert__message error">
|
|
|
|
<p>
|
|
|
|
<?= $_SESSION['signup'];
|
|
|
|
unset($_SESSION['signup']);
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php endif ?>
|
|
|
|
<form action="<?=ROOT_URL?>signup-logic.php" enctype="multipart/form-data" method="POST">
|
|
|
|
<input type="text" name ="firstname" value ="<?= $firstname?>" placeholder="First Name">
|
|
|
|
<input type="text" name ="lastname" value ="<?= $lastname?>" placeholder="Last Name">
|
2023-01-11 07:08:01 +00:00
|
|
|
<input type="username" name ="username" value ="<?= $username ?>" placeholder="Username">
|
2023-01-03 06:41:23 +00:00
|
|
|
<input type="email" name ="email" value ="<?= $email ?>" placeholder="email">
|
|
|
|
<input type="password" name ="createpassword" value ="<?= $createpassword ?>" placeholder="Password">
|
|
|
|
<input type="password" name ="confirmpassword" value ="<?= $confirmpassword?>" placeholder="Confirm Password">
|
2022-12-30 03:25:40 +00:00
|
|
|
<div class="form__control">
|
|
|
|
<label for="avatar">User Avatar</label>
|
2023-01-03 06:41:23 +00:00
|
|
|
<input type="file" name="avatar" id="avatar">
|
2022-12-30 03:25:40 +00:00
|
|
|
</div>
|
2023-01-03 06:41:23 +00:00
|
|
|
<button type="submit" name ="submit"class="btn">Sign Up</button>
|
2022-12-30 03:25:40 +00:00
|
|
|
<small>Already have an Account? <a href="signin.php">Sign in</a></small>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|