Multidimensional $_POST
Posted: Thu Oct 22, 2009 4:50 pm
Hello
How to get a single array from array of array (2 - dimension).
For example I have a form:
In my php code I want to take, an array personal form $_POST and assign it to new variable:
But it doesn't work
Could anybody help me?
Regards
How to get a single array from array of array (2 - dimension).
For example I have a form:
Code: Select all
<input type="text" name="[b]personal[name][/b]" id="name" maxlength="50" value="Kasia"/>
<input type="text" name="[b]personal[surname][/b]" id="surname" maxlength="50" value="Nova"/>
//etc...other input fields with different array
Code: Select all
$personal_array = $_POST['personal'];
$another_array = $_POST['other']
etc...
Could anybody help me?
Regards