C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

How to create an array of a group of items inside an HTML form ?

0 votes
33 views
asked Jan 2, 2014 by sara Guru (24,570 points)

1 Answer

0 votes
We can create input fields with same name for "name" attribute with squire bracket at the end of

the name of the name attribute, It passes data as an array to PHP.

    For instance :

    <input name="MyArray[]" />  <input name="MyArray[]" />  <input name="MyArray[]" />  <input

name="MyArray[]" />
answered Jan 2, 2014 by rajesh Guru (39,140 points)

Related questions

0 votes
1 answer 29 views
29 views asked Apr 14, 2014 by sunny Expert (11,410 points)
0 votes
1 answer 17 views
17 views asked Apr 14, 2014 by tin cook
0 votes
1 answer 15 views
15 views asked Apr 14, 2014 by gous
0 votes
1 answer 14 views
14 views asked Apr 11, 2014 by omari Sr Member (3,860 points)
0 votes
1 answer 15 views
15 views asked Jan 2, 2014 by sara Guru (24,570 points)
...