Re: Curl with asp pages....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux