elledante Posted April 3, 2008 Share Posted April 3, 2008 Hi guys i have done a log in form wich worksish.... i am supposed to have it where a user logs in and views which cases they deal with ( as counties in the uk) Am i right in thinking that i will need if statements so that if.. joe blogs logs in it shows such a thing and if joe stalin logs in it says another thing? if so can anyone help me with code and/or how i go about it.. log ins are 110% new to me but im not doing that bad haha. Link to comment https://forums.phpfreaks.com/topic/99446-solved-log-in-forms/ Share on other sites More sharing options...
almightyegg Posted April 3, 2008 Share Posted April 3, 2008 You don't want to do it by there name if there is to be 100s of members. You will need ifs though. Do you mean (from where you said counties) if($user[county] == Suffolk){ echo this }elseif($user[county] == Derbyshire){ echo that } ?? Link to comment https://forums.phpfreaks.com/topic/99446-solved-log-in-forms/#findComment-508832 Share on other sites More sharing options...
elledante Posted April 3, 2008 Author Share Posted April 3, 2008 yeah... i have the user log ins first name is user name password is their surname.. ( its jsut to get me used to doing forms) i said counties i should of said regions.. below is part of the users and which part they deal with.. Jack Charlton Midlands and Eastern England Norman Hunter Yorkshire and North East England John Giles North West England Don Revie Scotland .... so i take it i will use the code you pasted and add it to the actual page displayed once the user has successfully logged in?? Link to comment https://forums.phpfreaks.com/topic/99446-solved-log-in-forms/#findComment-508839 Share on other sites More sharing options...
almightyegg Posted April 3, 2008 Share Posted April 3, 2008 Yes. Pretty much. Link to comment https://forums.phpfreaks.com/topic/99446-solved-log-in-forms/#findComment-508842 Share on other sites More sharing options...
elledante Posted April 3, 2008 Author Share Posted April 3, 2008 thankyou!!! Link to comment https://forums.phpfreaks.com/topic/99446-solved-log-in-forms/#findComment-508844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.