Person Posted May 14, 2007 Share Posted May 14, 2007 Warning: Invalid argument supplied for foreach() on line 68 67 } 68 foreach( $PARAMS[$page_name] as $param => $param_name ) { 69 if( isset($_REQUEST[$param]) ) { Quote Link to comment https://forums.phpfreaks.com/topic/51349-warning-invalid-argument-supplied-for-foreach/ Share on other sites More sharing options...
chigley Posted May 14, 2007 Share Posted May 14, 2007 <?php echo "<pre>"; print_r($PARAMS[$page_name]); echo "</pre>"; die(); ?> Stick that before the foreach and let me know the output please. Is $PARAMS[$page_name] definitely an array in itself? Or is $PARAMS the array and $page_name is a value? Quote Link to comment https://forums.phpfreaks.com/topic/51349-warning-invalid-argument-supplied-for-foreach/#findComment-252869 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.