Thank you for looking at and taking time to answer my question!
I would like to use a multi-dimensional array in a form on my site and then access it using the keys; Like so.
<form method="post" action="somescript.php">
<input type="text" name="name[1][title]">
<input type="text" name="name[1][descritpion]">
</form>
I would then like to access both the index, since that is the ID, and the value of the given _post'ed element. Something like
$keys = array_keys($_POST['name']);
foreach($keys as $id)
{
echo "title: " . $_POST['name']['title'][$id];
echo "description: " . $_POST['name']['description'][$id];
echo "id: " . $id;
}
Now, the above looks nice and it prints out the correct $id but thats about it. I assume I am putting the "title" or "description" array calls in the wrong place but cannot figure it out. Could someone kindly point me in the right direction?
$_POST["description"]["title"][$id]