> input#item_id[type=text]

You  must  not  have  more than one element with the same ID attribute
(whether  you  do  it the 1.3 way or 1.2 way).  So you would be better
off leaving this out.

> Anyway the item number [] does not increment.

The increment is expected to happen on the server side.

But you can't do it this exact way, anyway, because:

[a]  item[0][item_id]  is  not  likely to be a useful variable name in
your  server-side  language  unless item_id is treated as a meaningful
constant  and  different from item_name.  You should use actual values
instead of letting the server side intuit the values.

[b]  item[0]['item_id'] is a typical item in an associative array, but
if  you  use item[]['item_id'] and item[]['item_name'] in your markup,
the  index  will  be  incremented  twice,  so  you  will  end  up with
item[0]['item_id'] and item[1]['item_name'] from the same row.

Switching  the  increment  to  the  end  will  at  least  give you two
synchronized  dimensions:  item['item_ids'][] and item['item_names'][]
will  result in item['item_ids'][0] and item['item_names'][0] from the
same row.

-- Sandy

Reply via email to