Re: [PATCH] Valid syntax for array creation from form elements

From: Date: Wed, 28 Nov 2001 13:51:03 +0000
Subject: Re: [PATCH] Valid syntax for array creation from form elements
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71921@lists.php.net to get a copy of this message
Well .. there were discussion about this in the past or at leat within some bug reports and it seems its likely to getting changed really soon. Although ECMA doesn't allow it it works fine aith all current (modern ;) implementations to access identfieris with '[' or ']' in the name. For more information you may wan't to search the archive at http://marc.theaimsgroup.com/ . - Markus On Wed, Nov 28, 2001 at 08:10:21AM -0500, Jesse McCarthy wrote : > This is a re-posting. I sent this a few days ago and got no response, which > wasn't exactly what I had in mind. Following is the original message: > > I'd like to patch PHP to allow for an XHTML-valid syntax for creating PHP > arrays from HTML elements 'input' (groups of type="checkbox") and > 'select' > (multiple="multiple"). Square brackets are not allowed in XHTML identifiers, > so the current syntax name="someName[]" or name="someName[someKey]" is not > valid. Square brackets are also not allowed in ECMAScript identifiers (e.g. > variable names) or directly in CSS selectors. I propose a simple, valid > alternative syntax, perhaps something like name="someName__" or > name="someName__someKey__". I'd like to get feedback on the likelihood of > that conflicting with any established practices or conventions (I know it > would work fine for me), or suggestions of a better syntax. > > I'd also like to get a little guidance on exactly how to proceed with > submitting such a patch. As far as I can see this would only require > modifications to php_variables.c, rfc1867.c, and type.c. > > When responding to this thread, please CC me because I am not subscribed to > the list. > > Thanks, > Jesse McCarthy > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Please always Cc to me when replying to me on the lists.

« previous php.dev (#71921) next »