Fatal error: Cannot access empty property in /var/www/html//regForm_process.php on line 9

This is te code:

$i = 1;
foreach($_GET as $name->$value)
    echo 'GET '.$i.': '.$name.' and VALUE = '.$value.'

Basically i wanted to get all the variables,a nd assign them as a var to be fed to a mysql insert query.
But the code above is jusr P0C. When called/runned, get this error"

Fatal error: Cannot access empty property in /var/www/html/regForm_process.php on line 9

The fix? easy. change the ' -> ' to become ' => ' As easy as that -______-"
Hope this helps someone.



Popular posts from this blog

Python: thread.error: can't start new thread

Windows 2003 W2k3 Getting Current MTU Size

SAP Fiori Launchpad Activation via Task List (STC01)