joeysarsenal Posted October 8, 2007 Share Posted October 8, 2007 How is it possible, to have my login, so that when the username equallys staff 01 staff 02 or admin it opens a different page Quote Link to comment https://forums.phpfreaks.com/topic/72267-login-help/ Share on other sites More sharing options...
simcoweb Posted October 8, 2007 Share Posted October 8, 2007 You would use an 'if' statement something like: if($_POST['username'] = 'admin') { header("Location: adminpage.php"); } if($_POST['username'] = 'staff01') { header("Location: staff01page.php"); } if($_POST['username'] = 'staff02') { header("Location: staff02page.php"); } Quote Link to comment https://forums.phpfreaks.com/topic/72267-login-help/#findComment-364428 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.