Forum OpenACS Q&A: Re: Using multiple hidden vars with template::element::create

Another idea is to use the array trick

input name="myvar.1"
input name="myvar.2"

and set array datatype in ad_page_contract, which will provide an array. You don't need the keys, just the values from it.