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? ??? 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"])) { 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. Link to comment https://forums.phpfreaks.com/topic/82451-isset/#findComment-419271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.