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

Check SecStore KeyPhrase of Java Stack

Windows 2003 W2k3 Getting Current MTU Size

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