Re: HTML id attribute and arrays

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

 



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

The "name" attribute, not the "id" attribute, is used as the key when
submitting form values.

The "name" and "id" attributes do not have to be the same.

Thank you, I thought it should be the same (for same reason, maybe compatibility between XHTML and HTML). But could not find anything on the net which states this. So my memories might be corrupted :)

Based on first tests, it works (but have not checked the W3C validator yet).

Thanks,

Martin

--
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