form vbls in arrays

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg Bryant

    form vbls in arrays

    I'm working on a page generated by PHP, and all the form fields are named
    as b[fieldname]. (e.g. <input type=text name='b[name]' value='Adam'>).
    Javascript seems to barf on this (document.formn ame.b[name].length is
    undefined ). Is there any way to get this to work with arrays, or do I
    just need to use those fields referenced in the js as non-arrays?

    Thanks,
    Greg
  • Martin Honnen

    #2
    Re: form vbls in arrays



    Greg Bryant wrote:
    [color=blue]
    > I'm working on a page generated by PHP, and all the form fields are named
    > as b[fieldname]. (e.g. <input type=text name='b[name]' value='Adam'>).
    > Javascript seems to barf on this (document.formn ame.b[name].length is
    > undefined ). Is there any way to get this to work with arrays, or do I
    > just need to use those fields referenced in the js as non-arrays?[/color]

    See the faq


    --

    Martin Honnen


    Comment

    • Greg Bryant

      #3
      Re: form vbls in arrays

      Martin Honnen <mahotrash@yaho o.de> wrote in news:408a5af3$1
      @olaf.komtel.ne t:
      [color=blue]
      > http://www.jibbering.com/faq/#FAQ4_25[/color]

      Thanks for both - response and pointer to the FAQ.

      Greg

      Comment

      Working...