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. Quote Link to comment 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 } ?? Quote Link to comment 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?? Quote Link to comment Share on other sites More sharing options...
almightyegg Posted April 3, 2008 Share Posted April 3, 2008 Yes. Pretty much. Quote Link to comment Share on other sites More sharing options...
elledante Posted April 3, 2008 Author Share Posted April 3, 2008 thankyou!!! Quote Link to comment 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.