Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- require('/home/phpboard/public_html/includes/config.php');
- if(isset($_POST['submit']))
- {
- $username = mysql_real_escape_string(stripeslashes($_POST['username']));
- $password = mysql_real_escape_string(stripeslashes($_POST['password']));
- $result = mysql_query("SELECT * FROM UserData WHERE username='$username' and password='$password'");
- $count=mysql_num_rows($result);
- if($count==1){
- session_register('username');
- echo "Login Successful!";
- header("location:login_success.php");
- }
- else
- {
- echo "Incorrect Username or Password!";
- }
- ob_end_flush();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement