Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL & ~E_NOTICE);
- session_start();
- if($_POST['submit'])
- {
- include_once("connection.php");
- $username = strip_tags($_POST['username']);
- $pass = strip_tags($_POST['pass']);
- $sql = "SELECT * FROM 'users' WHERE 'username' = '$username', 'pass' = '
- $pass'";
- $query = mysql_query($dbCon, $sql);
- if(mysql_num_rows($query)){
- //מה אם הנתונים נכונים
- }else{
- // מה אם הנתונים לא נכונים
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <link rel="stylesheet" type="text/css" href="style.css">
- <title>MyStory - התחברות</title>
- </head>
- <body>
- <header>
- <a id="logo" href="MyStory.html">Name</a>
- </header>
- <div class = "lform">
- <form method="post" action="login.php">
- <input class="input" type="text" placeholder="שם משתמש" name="username" /><br/>
- <input class="input" type="password" placeholder="סיסמה" name="pass" /><br/>
- <input class="input" id="loginBtn" type="submit" value="התחבר" />
- </form>
- </div>
- <footer>©2016</footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement