phploginscreen

Solutions on MaxInterview for phploginscreen by the best coders in the world

showing results for - "phploginscreen"
Everett
29 Jul 2017
1<?php
2if (isset($_POST['login'])) {
3    include_once $_SERVER['DOCUMENT_ROOT'] . '/initconfig.php';
4    include_once 'php-login-form/user-dbop.php';
5    $objUser = new User();
6    $objUser->login($_POST['user_name'], $_POST['password']);
7}
8?>
9<!DOCTYPE html>
10<html lang="en">
11    <head>
12        <meta charset="utf-8">
13        <meta http-equiv="X-UA-Compatible" content="IE=edge">
14        <meta name="viewport" content="width=device-width, initial-scale=1">
15        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
16        <meta name="description" content="">
17        <meta name="author" content="">
18        <title>Php Login Form</title>
19        <!-- Bootstrap core CSS -->
20        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
21
22        <link rel="stylesheet" href="https://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css">
23
24        <link href='https://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
25        <style>
26            .at_background{
27                background: url(back2.jpg) no-repeat center center fixed;
28                -webkit-background-size: cover;
29                -moz-background-size: cover;
30                -o-background-size: cover;
31                background-size: cover;
32            }
33            .at_font{
34                color: navy;
35                /*font-family: 'Indie Flower', cursive;*/
36                font-family: 'Lobster', cursive;
37            }
38        </style>
39    </head>
40
41    <body class="at_background">
42        <div style="height: 100px;">
43
44        </div>
45        <div class="container bs-docs-container ">
46            <div class="row well">
47                <div style="">
48                    <img src="https://www.alphansotech.com/wp-content/uploads/2015/12/Alphansotech.png"/>
49                </div>
50                <div class="col-md-9 " role="main">
51                    <div class="bs-docs-section">
52                        <div class="header clearfix">
53                            <h1 class="at_font col-md-8">Php Login Form With Database</h1>
54                        </div>
55                        <hr>
56                        <form action="index.php" method="post">
57                            <div class="form-group">
58                                <label for="email">Email:</label>
59                                <input type="email" class="form-control" id="email" placeholder="Enter email" name="user_name">
60                            </div>
61                            <div class="form-group">
62                                <label for="pwd">Password:</label>
63                                <input type="password" class="form-control" id="pwd" placeholder="Enter password" name="password">
64                            </div>
65                            <button type="submit" class="btn btn-primary" name="login">Login</button>
66                            <a href="register.php" class="btn btn-danger">Register</a>
67                        </form>
68                    </div>
69                </div>
70
71            </div>
72
73        </div> <!-- /container -->
74    </body>
75</html>
76
similar questions
queries leading to this page
phploginscreen