valid xhtml and control names

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael G

    valid xhtml and control names

    Hi,

    I am really struggling with using form control names such as "gs[]". This
    will not valid but is tremendously useful in terms of the way that it is
    handled by php on the server.

    Any thoughts?

    Thanks, Mike



    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  • Andy Hassall

    #2
    Re: valid xhtml and control names

    On Fri, 5 Aug 2005 12:26:48 -0600, "Michael G" <mike-g@montana.com> wrote:
    [color=blue]
    >I am really struggling with using form control names such as "gs[]". This
    >will not valid but is tremendously useful in terms of the way that it is
    >handled by php on the server.[/color]

    What makes you think it is not valid? I just tried submitting an example to
    the W3 validator and it accepted it as valid XHTML 1.0 Strict.

    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>Test</title>
    </head>
    <body>
    <form method="get" action="test.ht ml">
    <fieldset>
    <input type="text" name="gs[]" value="1" />
    <input type="text" name="gs[]" value="2" />
    <input type="text" name="gs[]" value="3" />
    <input type="submit" />
    </fieldset>
    </form>
    </body>
    </html>

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Michael G

      #3
      Re: valid xhtml and control names


      "Andy Hassall" <andy@andyh.co. uk> wrote in message
      news:6tf7f15075 4fa74k5vhtuprkj ubncq99mp@4ax.c om...[color=blue]
      > On Fri, 5 Aug 2005 12:26:48 -0600, "Michael G" <mike-g@montana.com> wrote:
      >[color=green]
      >>I am really struggling with using form control names such as "gs[]". This
      >>will not valid but is tremendously useful in terms of the way that it is
      >>handled by php on the server.[/color]
      >
      > What makes you think it is not valid? I just tried submitting an example
      > to
      > the W3 validator and it accepted it as valid XHTML 1.0 Strict.
      >[/color]

      First, I was reading an outdated post. Second, I tried that last night and
      it would not validate. I must have misinterpreted the errors.
      Thanks. Mike



      ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
      http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
      ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

      Comment

      Working...