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:
Did you know?Explore Trending and Topic pages for more stories like this.

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

SQl num_rows problem
when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysq

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

Month String to Numeric?
Hi guys,

Given a month as a string, is there a simple way to find the numeric representation

I need help with formatting date from mysql! with php!
Hello guys

*Note: this is a php question not MySQL question, please do not move it to mysql s

Not Inserting into DB
I can't get my Add new Division form to submit to the database. Anyone see my issue?

Code: &a

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

bind error during socket programming
i am kinda new to socket programming. wrote the below code for a server. but getting the bind error

creating a 1 to 100 in a table
hi guys I am a newb in php need some help.

I have a table with 1 column and 100 rows and in

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

How to change Time Zone
HI
I want to change the time zone of the server to another country.How can do that?

Thanks

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