sphinx Posted October 5, 2011 Share Posted October 5, 2011 Hi there, I'm currently using the below code to allow one isset which is ?sent, I also want to add another in this case ?sent1 <?php $link ='index.php?sent'; if (!isset($_GET['sent'])) include 'contact.php'; ?> An example of what I mean is below (obviously it doesn't work ) <?php $link ='index.php?sent'; if (!isset($_GET['sent']) & ['sent1'])) include 'contact.php'; ?> Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/ Share on other sites More sharing options...
KevinM1 Posted October 5, 2011 Share Posted October 5, 2011 <?php $link ='index.php?sent'; if (!isset($_GET['sent']) && !isset($_GET['sent1'])) include 'contact.php'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276111 Share on other sites More sharing options...
sphinx Posted October 5, 2011 Author Share Posted October 5, 2011 Great thanks. Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276112 Share on other sites More sharing options...
sphinx Posted October 5, 2011 Author Share Posted October 5, 2011 sorry, On that note: <?php if (isset($_GET['sent']) && isset($_GET['sent1'])) include('sotw.php'); ?> The above code doesnt display sotw.php on either sent or sent1, however, if i only have one of them it works. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276114 Share on other sites More sharing options...
sphinx Posted October 5, 2011 Author Share Posted October 5, 2011 bump Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276175 Share on other sites More sharing options...
PaulRyan Posted October 5, 2011 Share Posted October 5, 2011 <?php if (isset($_GET['sent']) || isset($_GET['sent1'])) include('sotw.php'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276179 Share on other sites More sharing options...
sphinx Posted October 5, 2011 Author Share Posted October 5, 2011 brilliant thanks Quote Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276189 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.