I am using pear's quickforms to handle my form processing and I ran into something I don't know how to do. I have a list of accounts associated with a person in my database. One needs to be the Primary account. I would like to use radio buttons to accomplish this. I do not know how to have quickforms handle the generation of an arbitrary number of radio elements on the fly without having to loop through and do an addElement() for each button right before I display the form, which I would rather not do. Is there something else in the quickform api that could help me out
ACCOUNT PRIMARY
------- -------
Account A (*)
Account B ( )
Account C ( )
[SUBMIT]
A better way to accomplish this would be to have quickform contain a single select, and auto fill it's values with accounts. But I would like to explore having it done with radio if I can.