Hello.

I have a form that has elements

<input type="hidden" name="add_article_link_url_list[1][link]"
id="add_article_link_url_list" value="1" />
<input type="hidden" name="add_article_link_desc_list[1][url]"
id="add_article_link_desc_list" value="1" />

<input type="hidden" name="add_article_link_url_list[2][link]"
id="add_article_link_url_list" value="2" />
<input type="hidden" name="add_article_link_desc_list[2][url]"
id="add_article_link_desc_list" value="2" />

I use Form.serialize('my_form',true);

And all the other elements seem to be ok but the inputs that should be
arrays are returned as:

[add_article_link_url_list[1][link]] => 1
[add_article_link_desc_list[1][url]] => 1
[add_article_link_url_list[2][link]] => 2
[add_article_link_desc_list[2][url]] => 2

If my logic is correct should it return something like

[add_article_link] => Object
(
        [1] => Object
        (
                [link] => 1
                [url] => 1
        )
        [2] => Object
        (
                [link] => 2
                [url] => 2
        )
)

Witch format is prototype supposed to return the info in? If the first
then how would I be able to get the result in the second format?

And if I wanted to get "add_article_link_url_list" object to go over
the items one by one how would I go about doing that?

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to