Advertisement
Guest User

Untitled

a guest
Sep 4th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1.         <?php
  2. error_reporting(E_ALL & ~E_NOTICE);
  3. session_start();
  4.  
  5. if($_POST['submit'])
  6. {
  7.     include_once("connection.php");
  8.     $username = strip_tags($_POST['username']);
  9.     $pass = strip_tags($_POST['pass']);
  10.     $sql = "SELECT * FROM 'users' WHERE 'username' = '$username', 'pass' = '
  11. $pass'";
  12.     $query = mysql_query($dbCon, $sql);
  13.    
  14.     //איך אני ממשיך מכאן איך אני מאמת את הנתונים שקיבלתי מה Query?
  15. }
  16. ?>
  17. <!DOCTYPE html>
  18. <html>
  19.     <head>
  20.         <meta charset="utf-8" />
  21.         <link rel="stylesheet" type="text/css" href="style.css">
  22.         <title>MyStory - התחברות</title>
  23.     </head>
  24.     <body>
  25.         <header>
  26.             <a id="logo" href="MyStory.html">Name</a>
  27.         </header>
  28.        
  29.         <div class = "lform">
  30.        
  31.             <form method="post" action="login.php">
  32.            
  33.             <input class="input" type="text" placeholder="שם משתמש" name="username" /><br/>
  34.             <input class="input" type="password" placeholder="סיסמה" name="pass" /><br/>
  35.             <input class="input" id="loginBtn" type="submit" value="התחבר" />
  36.            
  37.             </form>
  38.            
  39.         </div>
  40.        
  41.     <footer>©2016</footer>
  42.     </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement