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 } ?> Quote 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 } ?> Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/84530-fromat-for-empty/#findComment-430659 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.