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 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"); } Link to comment https://forums.phpfreaks.com/topic/72267-login-help/#findComment-364428 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.