Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['btnsubmit']))
- {
- $usernamefrmdw=$_POST['Uname'];
- $pswfrmdw=$_POST['pw'];
- $host='localhost';
- $user='root';
- $pwd='';
- $db='aocourse';
- $conn=mysqli_connect($host,$user,$pwd,$db);
- $sql="select username,password from new where username='$usernamefrmdw' and password='$pswfrmdw'";
- $res=mysqli_query($conn,$sql);
- if($usernamefrmdw=='admin' && $pswfrmdw=='admin')
- {
- header("Location:addfile1.php?id=$usernamefrmdw");
- exit;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment