Multidimensional $_POST


Posted on 16th Feb 2014 07:03 pm 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

No comments posted yet

Your Answer:

Login to answer
206 Like 9 Dislike
Previous forums Next forums
Other forums

Hit counter updating once per IP - IP HIT COUNTER
I have a hit counter, for the amount of views on a tutorial.
It'll do the query and then do..

PL/SQL: ORA-00947: not enough values error message
Hi all i am getting Error(25,63): PL/SQL: ORA-00947: not enough values error message when executing

extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only

Help with search.php
Hello All

I need the search engine on a site I am building at the moment to display the searc

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c

SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built

Automatic Webpage ??
I have a page www.mysite.com/test.php with a
<form>
<textarea name=&q

Open/Close Links in Php
Hello, Hoping someone can inform me how I can get PHP to automatically open a set of links in a new

Page not Loading After Test
Hey All

It seemed that an inlcude statement wasn't working for some reason, so I tried a more

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash