You can also do things like encode data into the name like
field_1_info_here or maybe even better would be to put data about the field in a hidden field
As Herkum suggests, though, AJAX would by far be the most flexible.. I send complex data structures back and forth to Perl from JS using JSON in AJAX.