Multidimensional $_POST

Posted on 16th Feb 2014 by admin

Hello

How to get a single array from array of array (2 - dimension).
For example I have a form:

Line number On/Off | Expand/Contract <input type="text" name="personal[name]" id="name" maxlength="50" value="Kasia"/> <input type="text" name="personal[surname]" id="surname" maxlength="50" value="Nova"/> //etc...other input fields with different array

In my php code I want to take, an array personal form $_POST and assign it to new variable:

Line number On/Off | Expand/Contract $personal_array = $_POST['personal'];$another_array = $_POST['other']etc...

But it doesn't work
Could anybody help me?

Regards

Other forums