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 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'; ?> 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. 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 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 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'); ?> 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 Link to comment https://forums.phpfreaks.com/topic/248495-adding-multiple-issets/#findComment-1276189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.