tags:

views:

34

answers:

3

how can i recive an array from an html get form?

i would receive the value of same checkbox, they have all the same name "es. object"

+1  A: 

In your HTML form, use something like this.

<input type="checkbox" name="object[]" />
<input type="checkbox" name="object[]" />
<input type="checkbox" name="object[]" />

Then when you receive it in PHP the values of the checkboxes will be held in the array $object.

Luke
A: 
Galen
+1  A: 

Not sure I'm completely understanding your question but if you name your elements in the following way they will become ad array:

<input type="checkbox" name="lang[ ]" value="en">English<br />
<input type="checkbox" name="lang[ ]" value="fr">Français<br />
<input type="checkbox" name="lang[ ]" value="es">Español<br />
Swish