[PHP] W3C Validator and Post Arrays

2009-04-02 Thread Shaun Thornburgh

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


_
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Michael A. Peters

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.


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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Peter Ford
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 89
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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Peter Ford
Peter Ford wrote:
 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?
 

Oooh, I've just looked it up - that *is* neat!

-- 
Peter Ford  phone: 01580 89
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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Igor Escobar
Put [] in the name attribute, but in ID must be unique.

Regards,
Igor Escobar
systems analyst  interface designer
www . igorescobar . com



On Thu, Apr 2, 2009 at 8:11 AM, Peter Ford p...@justcroft.com wrote:

 Peter Ford wrote:
  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?
 

 Oooh, I've just looked it up - that *is* neat!

 --
 Peter Ford  phone: 01580 89
 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




Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread tedd

At 4:03 AM -0700 4/2/09, 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.



Ahhh, no.

Try this:

http://www.webbytedd.com/bbb/check-box-form/

It works, shows why and how you can use [] and it validates.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread tedd

At 4:03 AM -0700 4/2/09, 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.



Correction -- name is Ok and where you should put the [].

The demo is here:

http://www.webbytedd.com/bbb/check-box-form/

It works, shows why and how you can use [] and it validates.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 14:23 -0400, tedd wrote:
 At 4:03 AM -0700 4/2/09, 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.
 
 
 Ahhh, no.
 
 Try this:
 
 http://www.webbytedd.com/bbb/check-box-form/
 
 It works, shows why and how you can use [] and it validates.
 
 Cheers,
 
 tedd
 
 -- 
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com
 
You can use them in the name attribute like you said, but not in the id.
As id's all need to be unique, just output an incremental number next to
the text in the id property, sans [ characters.


Ash
www.ashleysheridan.co.uk


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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Paul M Foster
On Thu, Apr 02, 2009 at 02:25:55PM -0400, tedd wrote:

 At 4:03 AM -0700 4/2/09, 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.


 Correction -- name is Ok and where you should put the [].

 The demo is here:

 http://www.webbytedd.com/bbb/check-box-form/

 It works, shows why and how you can use [] and it validates.

 Cheers,

 tedd

I vote we scrap this list. Anyone with a question, just go to Tedd's
website. There's got to be an example on there somewhere. ;-}

Paul

-- 
Paul M. Foster

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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Michael A. Peters

tedd wrote:

At 4:03 AM -0700 4/2/09, 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.



Correction -- name is Ok and where you should put the [].


I must be missing how that is a correction of my post ...

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



Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread tedd

At 2:34 PM -0700 4/2/09, Michael A. Peters wrote:

tedd wrote:

At 4:03 AM -0700 4/2/09, 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

Se=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.



Correction -- name is Ok and where you should put the [].


I must be missing how that is a correction of my post ...


No, that was a correction to my post where I suggested that you were 
not correct, but you were. I was the one not being correct until I 
corrected myself and then agreed with you, understand?


Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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