Advertisement
Guest User

Untitled

a guest
Mar 14th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <?php
  2. $host="localhost";
  3. $user="root";
  4. $password="";
  5. $adb="prisijungimai";
  6.  
  7. mysql_connect($host,$user,$password);
  8. mysql_select_adb($adb);
  9. if(isset($_POST['userid'])){
  10. $uname=$_POST['userid'];
  11. $password=$_POST['pswrd'];
  12. $sql="select * from prisijungimas where user='".$uname."'AND Pass ='".$password."'
  13. limit 1";
  14. $result=mysql_query($sql);
  15. if(mysql_num_rows($result)==1){
  16. echo " Sekmingai prisijungete";
  17. exit();
  18. }
  19. else{
  20. echo " Blogas prisijungimas arba slaptazdois"
  21.  
  22. }
  23. ?>
  24.  
  25. <!doctype html>
  26. <html>
  27. <head>
  28. <title>Batoneliu svetaine</title>
  29. <style type="text/css"></style>
  30.  
  31.  
  32. <link rel="stylesheet" type="text/css" href="style.css">
  33.  
  34.  
  35.  
  36. <meta charset="=utf-8">
  37. </head>
  38. <body>
  39.  
  40. <button class="button">Namai</button>
  41. <button class="button">Prekes</button>
  42. <button class="button">Kontaktai</button>
  43. <input type="submit" class="button" value="Pristatymas">
  44.  
  45. <div>
  46.  
  47. </div>
  48.  
  49.  
  50. <div class="body"></div>
  51. <div class="grad"></div>
  52. <div class="header">
  53.  
  54. </div>
  55. <br>
  56. <form name="login" action="" method="_POST">
  57. <div class="login">
  58. <input type="text" placeholder="Prisijungimas" name="userid"><br>
  59. <input type="password" placeholder="Slaptazodis" name="pswrd"><br>
  60. <input type="button" onclick="check(this.form)" value="Login"/>
  61. </div>
  62.  
  63.  
  64.  
  65.  
  66. </body>
  67.  
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement