├── _dbconnect.php
├── _nav.php
├── index.php
├── login.php
├── signup.php
└── welcome.php
/_dbconnect.php:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/_nav.php:
--------------------------------------------------------------------------------
1 |
30 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Abdul-Basit-Ansari/authentication-php/a1a727cf16f55160002564bb7b75a5ec9b18e3eb/index.php
--------------------------------------------------------------------------------
/login.php:
--------------------------------------------------------------------------------
1 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | Login
39 |
40 |
41 |
42 |
45 | Success! You are logged in
46 |
49 | ';
50 | }
51 | if($showError){
52 | echo '
53 | Error! '. $showError.'
54 |
57 |
';
58 | }
59 | ?>
60 |
61 |
62 |
Login to our website
63 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/signup.php:
--------------------------------------------------------------------------------
1 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | SignUp
35 |
36 |
37 |
38 |
41 | Success! Your account is now created and you can login
42 |
45 | ';
46 | }
47 | if($showError){
48 | echo '
49 | Error! '. $showError.'
50 |
53 |
';
54 | }
55 | ?>
56 |
57 |
58 |
Signup to our website
59 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/welcome.php:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Welcome -
22 |
23 |
24 |
25 | Welcome -
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------