Strange error....
Date: 09/27/07
(PHP Community) Keywords: php, web
OK - my group is finalizing a website and we have a convoluted form ... and when we moved it from our server to the end clients we started getting the error:
Warning: Invalid argument supplied for foreach() in /usr/local/www/vhosts/mtrinc.com/htdocs/mirror/inquiry_handler.php on line 112
Here is the relevant code
$section = array();
$labels = array();
$message = array();
foreach ($_POST as $key => $val)
{
$section[] = $key;
foreach ($val as $tit => $dat)
{
$labels[] = $tit;
$message[] = $dat;
}
}
Anyone have any ideas?
Source: http://community.livejournal.com/php/587935.html