Jump to content

Warning: Invalid argument supplied for foreach()


freak4

Recommended Posts

I have this code in one of my files:

                $requiredFields = array();
                foreach ($fields as $key => $field) {
                    if (1 == $field['required']) {
                        $requiredFields[$key] = $field['message'];
                    }
                }

Getting error:

 

Warning: Invalid argument supplied for foreach() in /home/USER/public_html/register.php on line 79

 

Anybody help?

 

thank you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.