mars_rahul Posted January 4, 2008 Share Posted January 4, 2008 i dont know whats wrong with This code. <?php $id1 = $_GET['row1']; $id2 = $_GET['row2']; if(empty($id1,$id2)){ // do this } ?> Link to comment https://forums.phpfreaks.com/topic/84530-fromat-for-empty/ Share on other sites More sharing options...
GingerRobot Posted January 4, 2008 Share Posted January 4, 2008 You can't list variables to check like that. You need to do: <?php $id1 = $_GET['row1']; $id2 = $_GET['row2']; if(empty($id1) && empty($id2)){ // do this } ?> Link to comment https://forums.phpfreaks.com/topic/84530-fromat-for-empty/#findComment-430651 Share on other sites More sharing options...
mars_rahul Posted January 4, 2008 Author Share Posted January 4, 2008 i already have idea of isset() function and also of general if test <?php if($id1 $$ $id2) // do something ?> it works 20 times faster than but can u add more variable in empty function as we do with isset function. Link to comment https://forums.phpfreaks.com/topic/84530-fromat-for-empty/#findComment-430656 Share on other sites More sharing options...
mars_rahul Posted January 4, 2008 Author Share Posted January 4, 2008 Thanks ben for the solution. hope to meet u wid new problem. take care Link to comment https://forums.phpfreaks.com/topic/84530-fromat-for-empty/#findComment-430659 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.