RE: [PHP] php processing name vs. id field

2010-07-02 Thread Bob McConnell
From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They don't even behave the same. What would happen if you had two forms on a page that both had an element with the same name? Using the

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 08:49 -0400, Bob McConnell wrote: From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They don't even behave the same. What would happen if you had two forms on a

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 15:01, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-07-02 at 08:49 -0400, Bob McConnell wrote: From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They

RE: [PHP] php processing name vs. id field

2010-07-02 Thread tedd
At 2:01 PM +0100 7/2/10, Ashley Sheridan wrote: -snip- I agree with Ash 100%. There is an id and a name attribute for input (et al) tags -- that's html. I can use the attribute name for php and the attribute id for javascript and css because these are different languages with different

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Bob McConnell
From: tedd At 2:01 PM +0100 7/2/10, Ashley Sheridan wrote: -snip- I agree with Ash 100%. There is an id and a name attribute for input (et al) tags -- that's html. ... So, what's the major beef here? Is someone objecting to having both id and name being legal attributes for a tag? If

RE: [PHP] php processing name vs. id field

2010-07-02 Thread tedd
At 8:49 AM -0400 7/2/10, Bob McConnell wrote: These conditions sound like a bugs to me. I can't imagine any reason why different forms could have the same name or id Bob: No offense, but duh! I can imagine, try this: The first form asks for the user's email address. The input statement has

RE: [PHP] php processing name vs. id field

2010-07-02 Thread tedd
At 10:53 AM -0400 7/2/10, Bob McConnell wrote: This discussion began when I pointed out that the name attribute is deprecated in XHTML. This was later confirmed when someone pointed to the actual specification at http://www.w3.org/TR/xhtml1/, however there may be some confusion about the scope

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Bob McConnell
From: tedd At 10:53 AM -0400 7/2/10, Bob McConnell wrote: This discussion began when I pointed out that the name attribute is deprecated in XHTML. This was later confirmed when someone pointed to the actual specification at http://www.w3.org/TR/xhtml1/, however there may be some confusion

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Kirk . Johnson
Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This discussion began when I pointed out that the name attribute is deprecated in XHTML. This was later confirmed when someone pointed to the

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Adam Richardson
On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This discussion began when I pointed out that the name attribute is

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Adam Richardson
On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 20:03, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell

RE: [PHP] php processing name vs. id field

2010-07-01 Thread Bob McConnell
From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a php form processing question. I've got a text field like so: div label for=txtnameName*:/label input type=text name=name id=name size=30 value=?php echo

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Peter Lind
On 1 July 2010 14:38, Bob McConnell r...@cbord.com wrote: From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a php form processing question. I've got a text field like so: div label for=txtnameName*:/label input type=text

RE: [PHP] php processing name vs. id field

2010-07-01 Thread Bob McConnell
From: Peter Lind On 1 July 2010 14:38, Bob McConnell r...@cbord.com wrote: From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a php form processing question. I've got a text field like so: div label for=txtnameName*:/label

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Peter Lind
On 1 July 2010 15:02, Bob McConnell r...@cbord.com wrote: From: Peter Lind On 1 July 2010 14:38, Bob McConnell r...@cbord.com wrote: From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a php form processing question. I've got

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Peter Lind
On 1 July 2010 15:28, Peter Lind peter.e.l...@gmail.com wrote: On 1 July 2010 15:02, Bob McConnell r...@cbord.com wrote: From: Peter Lind On 1 July 2010 14:38, Bob McConnell r...@cbord.com wrote: From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Paul M Foster
On Thu, Jul 01, 2010 at 03:40:56PM +0200, Peter Lind wrote: snip Apart from that, html5 is not going to do away with the name attribute. And name is in xhtml1 and html4.01 and there's no mention of it being obsolete, deprecated or in any other fashion on the way out. As far as reference:

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 10:19 -0400, Paul M Foster wrote: On Thu, Jul 01, 2010 at 03:40:56PM +0200, Peter Lind wrote: snip Apart from that, html5 is not going to do away with the name attribute. And name is in xhtml1 and html4.01 and there's no mention of it being obsolete, deprecated

Re: [PHP] php processing name vs. id field

2010-06-30 Thread Adam Richardson
On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a php form processing question. I've got a text field like so: div label for=txtnameName*:/label input type=text name=name id=name size=30 value=?php echo htmlspecialchars($_POST['name']),