register.php 641 Bytes
<?php
session_start();
if($_SESSION['name']){
}else header('Location: index.php');
?>

<html>

<form action="registerAction.php" method="post">
 <label><b>Name</b></label>
    <input type="text" placeholder="Enter Name" name="name" required><p>
  <label><b>Username</b></label>
    <input type="text" placeholder="Enter Username" name="username" required><p>
    <label><b>Password</b></label>
    <input type="password" placeholder="Enter Password" name="password"required><p>
  <input type="submit" name="submit" value="Register">
</form>
<form action="workArea.php" >
  <input type="submit" name="submit" value="Cancel">
</form>
</html>