php - Admin Panel of my Website in not working on ipage.com but works on localhost -
i have created website working fine on localhost when upload on ipage.com login page of admin panel not accepting username , password.i had created database same username , password code of login page
<?php session_save_path("/home/users/web/b1704/ipg.bwpresentscom/cgi-bin/tmp"); session_start(); ?> <!doctype html> <html> <head> <title>admin login</title> <link rel="stylesheet" href="style.css" type="text/css" /> <link rel="stylesheet" href="bootstrap/css/bootstrap.css" type="text/css" /> </head> <body> <div class="adminform"> <form method="post" action="login.php"> <input type="submit" name="login" value="" class="" style="width:100%; background:black; border:2px solid black;"> <button class="btn btn-primary btn-lg btn-block">admin login</button> <center> <input type="text" type="text" name="user_name" class="input-lg"> <input type="password" name="user_pass" class="input-lg"> </center> </div> </body> </html> <?php include ("inc/connect.php"); if(isset($_post['login'])){ $user_name = mysql_real_escape_string($_post['user_name']); $user_pass = mysql_real_escape_string($_post['user_pass']); $encrypt = md5($user_pass); $login_query = "select * admin_login user_name='$user_name' , user_password='$user_pass'"; $run = mysqli_query($con,$login_query); if(mysqli_num_rows($run)>0){ $_session['user_name']=$user_name; echo "<script>window.open('index.php','_self')</script>"; } else { echo "<script>alert('user name , password not match!')</script>"; } } ?>
please me. thanks.
Comments
Post a Comment