title: Handling input arrays in Express forms?
body: <p>Let's say I have to edit a batch of objects of the same type on the same page:</p>
  
  <pre><code>//-jade
  form(action='', method='POST')
      for each message_id in messages_ids
          input(type='text', name='message', id='#{message_id}')
          input(type='text', name='author',  id='#{message_id}')
      input(type='submit', value='Send')
  </code></pre>
  
  <p>I know I wont be able to process such form on backend 'cause of id -- it wont be sent to backend. However, is there a way to do it? I'd like to get something like this on backend:</p>
  
  <pre><code>//js
  for (var i = 0; i &lt;= req.body.message.length; i++) {
      console.log (
          'ObjectID: ' + req.body.message[i].id, //-? null, just to show what I'm trying to get
          'Message: '  + req.body.message[i],
          'Author: '   + req.body.author[i]
      );
  }
  </code></pre>
  
  <p>It's pseudocode (it wont work). So, any ideas?</p>
  
  <p>P.S. I'm getting how to do this without AJAX</p>