Guest User

Untitled

a guest
Nov 30th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['btnsubmit']))
  3. {
  4. $usernamefrmdw=$_POST['Uname'];
  5. $pswfrmdw=$_POST['pw'];
  6. $host='localhost';
  7. $user='root';
  8. $pwd='';
  9. $db='aocourse';
  10. $conn=mysqli_connect($host,$user,$pwd,$db);
  11. $sql="select username,password from new where username='$usernamefrmdw' and password='$pswfrmdw'";
  12. $res=mysqli_query($conn,$sql);
  13.  
  14. if($usernamefrmdw=='admin' && $pswfrmdw=='admin')
  15. {
  16. header("Location:addfile1.php?id=$usernamefrmdw");
  17. exit;
  18. }
  19. }
  20. ?>
Add Comment
Please, Sign In to add comment