sending a form helper data into database

hi guys

  i have one model with some attributes in that like{x,y,z....} and i want two form helpers they are selectbox and text_field for one database field.whenever user tries to select any item in the select box or he can define it in the text_field.so that the details should update to the particular database field. how?