Ashley Sheridan wrote:
There is a slight difference in how ASP handles multiple form fields
that share the same name (as well as SELECT MULTIPLE lists) such that
ASP does not need (and should not use) square brackets in field names
the way PHP does.
Andrew
I thought that square brackets were actually part of the HTML spec, not
PHP, so the fact that ASP.Net cannot use them is just another example of
M$ doing their own thing again...
Why did you think that?
I think you'll find square brackets are a PHPism and that PHP is
actually a freakish oddball in not interpreting key=bar&key=foo&key=quux
as $_GET['key'] = array( 'bar', 'foo', 'quux' );
Contrast:
* PERL CGI module: http://docstore.mik.ua/orelly/linux/cgi/ch05_02.htm
* Python urlparse library:
http://docs.python.org/library/urlparse.html#urlparse.parse_qs
* Ruby on Rails: http://dev.rubyonrails.org/ticket/6645
IIRC there's nothing in the URI, HTML, or CGI specs that enforces how
these should be interpreted.
--
Benjamin Hawkes-Lewis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php