t_machine Posted March 13, 2007 Share Posted March 13, 2007 hi, can anyone help me with this problem. The script gets a form that posts it's values as an array configuration[]. This is the line that outputs the error. while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { Any help would be greatly appreciated Link to comment https://forums.phpfreaks.com/topic/42574-solved-warning-variable-passed-to-each-is-not-an-array/ Share on other sites More sharing options...
trq Posted March 13, 2007 Share Posted March 13, 2007 Are you sure you have enable long arrays enabled? $HTTP_POST_VARS has LONG been depricated. Try... while (list($key, $value) = each($_POST['configuration'])) { Link to comment https://forums.phpfreaks.com/topic/42574-solved-warning-variable-passed-to-each-is-not-an-array/#findComment-206600 Share on other sites More sharing options...
t_machine Posted March 13, 2007 Author Share Posted March 13, 2007 Thank you very much . It works perfectly now. Link to comment https://forums.phpfreaks.com/topic/42574-solved-warning-variable-passed-to-each-is-not-an-array/#findComment-206641 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.