-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.php
More file actions
36 lines (32 loc) · 844 Bytes
/
signup.php
File metadata and controls
36 lines (32 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
include 'header.php'
?>
<?php
// if (isset($_SESSION['username'])){
// echo $_SESSION['username'];
// } else {
// echo "You are not logged in.";
// }
?>
<link rel="stylesheet" type="text/css" href="style1.css">
<section>
<?php
if (isset($_SESSION['username'])){
echo "<p class='lg'>You are already logged in...!!!</p>";
} else {
echo "
<form class='signup' action='inc/signup.inc.php' method='POST'>
<input type='text' name='first' placeholder='Firstname'>
<input type='text' name='last' placeholder='Lastname'>
<input type='text' name='user' placeholder='Username'>
<input type='text' name='em' placeholder='Email'>
<input type='password' name='pwd' placeholder='Passowrd'><br>
<button type='submit' id='signup'>SIGN UP</button>
</form>
";
}
?>
</section>
<?php
include 'footer.php'
?>