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

« Context of Static Method Calls || Segfaultalicious »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home