Toy Posted September 29, 2010 Share Posted September 29, 2010 <?php if (!isset($_GET['register'])) { echo "register stuff here"; } elseif (!isset($_GET['login'])) { echo "login stuff here"; } elseif (!isset($_GET['forgotpassword'])) { echo "password recovery stuff here"; } else { echo "default page stuff here"; } ?> you get what i'm going for, but it kinda messes up this way with different contents on different places? help Quote Link to comment Share on other sites More sharing options...
meltingpoint Posted September 29, 2010 Share Posted September 29, 2010 What is messing up? Quote Link to comment Share on other sites More sharing options...
Toy Posted September 29, 2010 Author Share Posted September 29, 2010 What is messing up? you get the wrong content for the GET's Quote Link to comment Share on other sites More sharing options...
the182guy Posted September 29, 2010 Share Posted September 29, 2010 You're using the NOT operator (!) on each if statement, so the evaluation is being reversed. Example, your first if statement reads... If $_GET['register'] is NOT set, then do this... Quote Link to comment Share on other sites More sharing options...
Toy Posted September 29, 2010 Author Share Posted September 29, 2010 You're using the NOT operator (!) on each if statement, so the evaluation is being reversed. Example, your first if statement reads... If $_GET['register'] is NOT set, then do this... thank's i'll try removing the ! should probs work 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.