Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'dbconnect.php';
- $un = $_POST ['username'];
- $pw = $_POST ['password'];
- if (isset($_POST['login'])) {
- $dbCon = "SELECT username, password FROM co WHERE username='$un' AND password='$pw'";
- }
- $result = $conn->query($dbCon);
- if ($un == 'usename' && $pw == 'password') {
- header ("location: http://www.google.co.il");
- }
- else {
- echo "check your username or password and then try again!";
- }
- ?>
- <html>
- <body background="https://i.imgsafe.org/ed7d8b69c3.jpg">
- <center>
- <form action="index.php" method="post">
- <font size=12 color=white face=alef>
- <br />
- <br />
- <br />
- <br />
- username:<input type="text" name="username" style=
- "width: 50%;
- padding: 10px 17px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- border-radius: 4px;
- box-sizing: border-box;">
- <br />
- password:<input type="password" name="password" style=
- "width: 50%;
- padding: 10px 17px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- border-radius: 4px;
- box-sizing: border-box;">
- <br />
- <input type="submit" name="login" value="Log in" style="background-color: c61f3b; /* Green */
- border: none;
- color: white;
- padding: 20px 34px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 25px;"> </font>
- <br /><br />
- <br />
- <br /><br /><br /><br /></p><br /><br /><br /><br /></p><br /><br /><br /><br /></p><br /><br /><br /><br /><br /><br /></p><br /></p></p>
- <font size=5 color=white face=alef>
- home
- contact
- terms
- </font>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement