Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="localhost";
- $user="root";
- $password="";
- $adb="prisijungimai";
- mysql_connect($host,$user,$password);
- mysql_select_db($adb);
- if(isset($_POST['userid'])){
- $uname=$_POST['userid'];
- $password=$_POST['pswrd'];
- $sql="select * from prisijungimas where user='".$uname."'AND Pass ='".$password."'
- limit 1";
- $result=mysql_query($sql);
- if(mysql_num_rows($result)==1){
- echo " Sekmingai prisijungete";
- exit();
- }
- else{
- echo " Blogas prisijungimas arba slaptazdois";
- }
- }
- ?>
- <!doctype html>
- <html>
- <head>
- <title>Batoneliu svetaine</title>
- <style type="text/css"></style>
- <link rel="stylesheet" type="text/css" href="style.css">
- <meta charset="=utf-8">
- </head>
- <body>
- <button class="button">Namai</button>
- <button class="button">Prekes</button>
- <button class="button">Kontaktai</button>
- <input type="submit" class="button" value="Pristatymas">
- <div>
- </div>
- <div class="body"></div>
- <div class="grad"></div>
- <div class="header">
- </div>
- <br>
- <div class="login">
- <form action="" method="POST">
- <input type="text" placeholder="Prisijungimas" name="userid"><br>
- <input type="password" placeholder="Slaptazodis" name="pswrd"><br>
- <input type="submit" onclick="check(this.form)" value="Login"/>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement