Re: id & name when identifying html elements
| From: | Jason k Larson | Date: | Wed, 28 May 2003 09:31:09 +0000 |
| Subject: | Re: id & name when identifying html elements | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149206@lists.php.net to get a copy of this message | ||
PHP uses only the 'name' attribute of an element to assign the variable to.
You can use 'id' and 'name' together, but the two are different, for instance no two form elements should have the same 'id', but depending on multiform pages with similar inputs, an identical 'name' attribute could be used several times without conflict.
For PHP use, you have to use the 'name' attribute, but you've already figured that out.
--
Jason k Larson