Hi.
Why doesn't PHP convert mutiselect values with plain names (not array-like)
to arrays. Is there any reason to not doing this?
Example:
I have a page with multiselect, which name is SEL1
(I cannot use square brackets because I need to use a JavaScript on the
page, so, it's not allowed in
Thanx
But why not just to convert plain field names without [] to arrays??
Is there any reasons to not doing this?
Colin [EMAIL PROTECTED] wrote in message
9dec79$aa9$[EMAIL PROTECTED]">news:9dec79$aa9$[EMAIL PROTECTED]...
Example:
I have a page with multiselect, which name is SEL1
(I
Andrei Zmievski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
That's been a pet peeve of mine as well. I think that if PHP sees
multiple variables with the same name in POST data, it should make an
array out of them..
And in GET data either I think.
Why
Well. It could be prevented with some directive. Something like
?php_convert_multiple_to_array?
:-)))
Adam Wright [EMAIL PROTECTED] wrote in message
001f01c0d969$6494ca00$8d010a0a@griffin">news:001f01c0d969$6494ca00$8d010a0a@griffin...
Just from my point of view, I've got a lot of legacy code
Andrei Zmievski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Thu, 10 May 2001, Zeev Suraski wrote:
Why does it make more sense? Is there any advantage in using this over
using foo[]? By changing this behavior, we're actually losing
functionality,
Well
You can use something like this:
variable = documents.forms[0].elements['foo[]'];
Zeev Suraski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
At 19:20 10/5/2001, Andrei Zmievski wrote:
On Thu, 10 May 2001, Zeev Suraski wrote:
Why does it make more