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.'
';
    $i+=1;
}


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.

/alak

Comments

Popular posts from this blog

SAP: Segregate Different SMTP Mail Server Based on Sender Domain

SAP Client Copy Error: Errors occurred during export of container object FINB-TR-DERIVATION

Quick Dirty Script for Checking Oracle Data Gurad Gap and Emailing it