replace manual array with attribute

Permalink
On a form I have a manual array list such as this:

$quesitons = array(
   'first_name',
   'last_name',
   'gender',
   'date_of_birth',
   'attendee_email',
   'recruite_to_team',
   'team_code',
   'associated_team',
   'associated_team1',
   'associated_team2',
   'dbs_number',
   'dbs_date',
   'attendee_mealplan',
   'attendee_dietary',


I'd like to replace that array with a list from an attribute, which I guess would be the plain text box. Can any one advise what code I would need to replace the original array? The new attribute would probably be called ticket_questions, on a custom object called tickets.

Thanks for any advice