chwebdesigns Posted May 26, 2009 Share Posted May 26, 2009 Hi, I'm pretty new to writing lots of things in php, and this is probably a obvious answer. I've got this section of code <?php if (!$_GET['nav'] ) { #do something } ?> This part works ok. But what I want to happen is if nav = nothing or nav = main then the same if function goes ahead. Hope this makes sense. Thanks in advance Cal Quote Link to comment https://forums.phpfreaks.com/topic/159718-solved-using-if-in-php/ Share on other sites More sharing options...
lonewolf217 Posted May 26, 2009 Share Posted May 26, 2009 <?php if (!$_GET['nav'] || $_GET['nav']=='nothing' || $_GET['nav']=='main') { #do something } ?> Quote Link to comment https://forums.phpfreaks.com/topic/159718-solved-using-if-in-php/#findComment-842442 Share on other sites More sharing options...
chwebdesigns Posted May 26, 2009 Author Share Posted May 26, 2009 Thanks for that works great!! Quote Link to comment https://forums.phpfreaks.com/topic/159718-solved-using-if-in-php/#findComment-842447 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.