Hey,

I use arrays in my form, example:

<select multiple="multiple" name="mySelect[]">
<!-- .. several options, you can choose more than one with Ctrl -->
</select>

A browser creates a query string like this on submit:
mySelect[]=firstChoice&mySelect[]=secondChoice

The serverside result:
$_GET['mySelect'] as an array with 2 elements.

Now I want to use Ajax to work with my Form data, so I use the Form
Serializer in prototype. But prototype creates this kind of query
string:
mySelect[]=firstChoice,secondChoice

Thats not what I want because on serverside I get now
$_GET['mySelect'] as array with 1 element, it contains logically:
"firstChoice,secondChoice"

I think this is a bug because the behaviour differs from a normal form
submit and I will get in trouble if a string contains a "," which now
is a separator ...

Who can help me? Have I to write my own serialize script?

Andi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to