slpctrl Posted December 20, 2007 Share Posted December 20, 2007 Sorry for another stupid question, but how would one go about checking to make sure 2 post values are set? Is it: <? if(isset($_POST["value1"]) && $_POST["value2"]) { //code } ?> Is this correct? ??? Quote Link to comment https://forums.phpfreaks.com/topic/82451-isset/ Share on other sites More sharing options...
trq Posted December 20, 2007 Share Posted December 20, 2007 Does it work? No. <?php if (isset($_POST["value1"]) && isset($_POST["value2"])) { Quote Link to comment https://forums.phpfreaks.com/topic/82451-isset/#findComment-419208 Share on other sites More sharing options...
freebsdntu Posted December 20, 2007 Share Posted December 20, 2007 I guess it is correct. You can do something directly like if ($_POST['value2']),I suppose. Just my 2 cents worth. Quote Link to comment https://forums.phpfreaks.com/topic/82451-isset/#findComment-419271 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.