Forum Moderators: coopster
The following code print the error:
Warning: Illegal offset type in isset or empty in D:\xampp\htdocs\testing\4.php on line 5
[PHP]
$_POST[firstkey][secondkey]=12;
if (isset($_POST)) {
foreach($_POST as $firstkey){
foreach ($_POST[$firstkey] as $secondkey => $value){
echo $firstkey.$secondkey.$value
}
}
}
[/PHP]
How would be the correct way to get 1st key, 2nd key and value?
Thank you