Guest User

login.php

a guest
Jun 16th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html lang="pl">
  3. <head>
  4.     <meta charset="utf-8">
  5. </head>
  6. <body>
  7. <?php
  8.     require_once "connect.php";
  9.  
  10.     $connect1 = @new mysqli_connect($host, $dbuser, $dbpass, $dbname);
  11.  
  12.     if ($connect1->connect_errno!=0) {
  13.         echo "Error: ".$connect1->connect_errno;
  14.     }
  15.     else {
  16.         $login = $_POST['login'];
  17.         $pass = $_POST['pass'];
  18.    
  19.         echo "It works!";
  20.         $connect1->close();
  21.     }
  22.  
  23. ?>
  24. </body>
  25. </html>
Add Comment
Please, Sign In to add comment