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
37 views
asked 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 by rajesh Guru (39,140 points)

Related questions

0 votes
1 answer 31 views
31 views asked by sunny Expert (11,410 points)
0 votes
1 answer 18 views
0 votes
1 answer 17 views
0 votes
1 answer 15 views
15 views asked by omari Sr Member (3,860 points)
0 votes
1 answer 17 views
17 views asked by sara Guru (24,570 points)
...