I am making a login php file that uses headers to redirect different types of users and when ever it redirects the user to their specific page the buttons on the page become un-clickable. Will you help me?
Login HTML:
<form action="login-all.php" method="POST">
<lable>Login:</lable>
<input type="text" id="name" name="name" placeholder="First Name"/>
<input type="password" id="pass" placeholder="Password" name="pass"/>
<button type="submit">Log-In</button>
</form>
PHP:
if($role === '1' ) { //1 admin - 0 user
header('Location: admin.php');
//echo "admin";
}else{
header('Location: user.php');
//echo "user";
}
Buttons on User.php (not working from header redirect)
<a href="#input"><button>Input</button></a>
<a href="#submit"><button>Submit</button></a>