What are you trying to accomplish?

What do you think it wrong with the code below?

On 12/17/2010 8:19 AM, Martin C wrote:

PHP converts x[a]=b parameter of the HTTP request as an array named x
with its item named a set to value b. So, it seems possible to have the
following (X)HTML code:
<input type="text" name="x[a]" id="x[a]" value="b" />
Unfortunatelly, HTML specification does not allow neither "[" nor "]"
inside the id attribute. Specifically:
* Must begin with a letter A-Z or a-z
* Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".")
* Values are case-sensitive

How should I follow the HTML specification while having the passed
parameters automatically converted to arrays in PHP?

Thank you for any tips,


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to