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 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 } ?> 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!! 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
Archived
This topic is now archived and is closed to further replies.