RE: [PHP] id name when identifying html elements

2003-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Roland Tarver [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 10:07 I've got a question about about naming html components (text fields, select boxes etc) when submitting a form to a php page. First I tried identifying an element using the id attribute and

[PHP] id name when identifying html elements

2003-05-28 Thread Roland Tarver
Hi I've got a question about about naming html components (text fields, select boxes etc) when submitting a form to a php page. First I tried identifying an element using the id attribute and found that it was not being posted to the php page. When I use the name attribute it did get posted to

Re: [PHP] id name when identifying html elements

2003-05-28 Thread Jason k Larson
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