Michael A. Peters wrote:
> Shaun Thornburgh wrote:
>> Hi,
>>
>> We are getting errors when trying to vaildate our HTML due to the [
>> character when using Post Arrays:
>>
>> Line 173, Column 65:
>>         character "[" is not allowed in the value of attribute "id"
>>
>> …e="filters[calling_url]" id="filters[calling_url]"
>> value="categories-bulk-ear
>>
>> Does anyone know of a way around this?
>>
>> Thanks
> 
> Don't use [] in an ID - it doesn't belong there.
> If you are not using the ID for a hook, just drop it - the ID doesn't
> need to be there.
> 
> The name attribute is where you want the [] to post an array, ID does
> not get sent in a post.

The ID of any element should be unique in a HTML document - if you need an ID
for each of the inputs then you'll have to generate a unique one for each.

To the rest of the list: I'm not too happy about having stuff inside the []
either - is that some syntax I've missed or is it just wrong?

-- 
Peter Ford                              phone: 01580 893333
Developer                               fax:   01580 893399
Justcroft International Ltd., Staplehurst, Kent

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

Reply via email to