Click here to Skip to main content
15,914,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For example is
PHP
<input type="text" name="description[]">
<input type="text" name="description[]">
<input type="text" name="description[]">

Like this i used in my form
I want to get description[]

How can i get
Posted
Updated 24-Apr-12 22:55pm
v2

you would receve description in integer indexed array starting from zero.

as examepl
PHP
$count=count($_GET['description']);
for($i=0;$i<$count;$i++)
{
 echo $_GET['description'][$i];
}
 
Share this answer
 
PHP
$description=$_POST['description'];
print_r($description);
 
Share this answer
 
v2
Comments
Prasad_Kulkarni 25-Apr-12 4:56am    
What is this?
does this solves your problem?
DeepthiTanguturi 25-Apr-12 7:18am    
Simply I posted,By using for loop it can print.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900