-
Notifications
You must be signed in to change notification settings - Fork 0
/
signInOut.php
32 lines (29 loc) · 1.24 KB
/
signInOut.php
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
<?php
function signupform() {
echo "
<div id = 'clas'>
<form action =' /forum4/verifyuser.php' method = 'POST'>
<input type='text' placeholder='Username' id = 'usernameinput' name = 'usernameinput' />
<input type='password' placeholder='Password' id = 'passwordinput' name = 'passwordinput'/>
<input type = 'submit' value = 'Login' />
<button type = 'button' onclick = 'location.href = \"/forum4/signUp.php\";'>New User? Sign Up</button>
</form>
</div>" ;
}
function signout() {
echo nl2br("<p class='welcome'>Welcome ".$_SESSION['username']." :D</p>
<form action = '/forum4/signOut.php' method = 'GET'>
<input type = 'submit' value = 'Logout' /></form>");
}
function signup_form() {
echo "
<div id = 'clas'>
<form action =' /forum4/verify_user.php' method = 'POST'>
<input type='text' placeholder='Username' id = 'usernameinput' name = 'usernameinput' />
<input type='password' placeholder='Password' id = 'passwordinput' name = 'passwordinput'/>
<input type = 'submit' value = 'Login' />
<button type = 'button' onclick = 'location.href = \"/forum4/signUp.php\";'>New User? Sign Up</button>
</form>
</div>" ;
}
?>