Re: HTML id attribute and arrays

From: Date: Sun, 19 Dec 2010 16:56:36 +0000
Subject: Re: HTML id attribute and arrays
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-310142@lists.php.net to get a copy of this message
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

« previous php.general (#310142) next »