Storing information for html form post request

Hi, I have an ajaxed list of names, and I want to store their id’s or
emails’ so that when I submit the form, I can loop through all the
emails or ids.

My first thought is to make hidden fields like <%= hidden_field “email”
“one” %>

And then keep making new fields. Im trying not to make just one field
and have all the info seperated by something weird like “##”. It just
doesnt seem professional.

Whats the best way to do this? I dont want to have to count how many
hidden fields I have, either, that would be tedious.

Any help would be greatly appreciated.

Thanks guys,
Aryk