Hi.
I have a dynamic form, i must bulid some post array to field witch some id.
For example:
<input type="checkbox" name="field[124][]" value="1">
<input type="checkbox" name="field[124][]" value="2">
In php i can simply get value and key.
foreach($_POST as $key => $value){
if(is_array($value){
foreach($value as $key2 => $value2){
//i get key=>124 and all values for this key
}
}
}
<input type="checkbox" name="field" value="1">
<input type="checkbox" name="field" value="2">
In pylons for array of checkbox i can use
request.POST[field].getall()
How can i create in pylons post array like in PHP?
Thanks.