[SalesForce] Regarding Visualforce Page Drop Down

I have a search Page ..When I do some search i will get some search results.In those results for one column needs to have a drop down (LOVs) and when i select a value from that drop down need to get saved. How to achieve this?

 <apex:outputLabel value="Deal Status" /> 
  <apex:selectList value="{!Dealsstatus}" multiselect="true" size="3" id="dealstat"> 
    <apex:selectOptions value="{!Dealstatus}"/>
 </apex:selectList>

<apex:outputtext value="{!a.Deal_Status__c}"/> </apex:column> 

/******/
Public List<selectoption> getDealstatus(){
        List<selectoption> options = new List<selectoption>();
        Schema.DescribeFieldResult fr = Tranche_Senior_Rollup__c.Deal_Status__c.getDescribe();
        List<Schema.PicklistEntry> plelist = fr.getpicklistvalues();
       //options.add(new selectoption('None','None'));
        for(Schema.Picklistentry ple: plelist){
            options.add(new selectoption(ple.getvalue(),ple.getlabel()));
        }
        return options;
    } 
if(Dealsstatus.length()>0){ 
    temp=Dealsstatus;
    DealsstatusList =Dealsstatus.split('\\,');
    Dealsstatus=Dealsstatus=Dealsstatus.replace(',','\',\'');
    Dealsstatus='\''+Dealsstatus+'\'';
    }
 if(Dealsstatus.length()>0) q=q+' and Deal_Status__c in: DealsstatusList';

Best Answer

Use an <apex:actionSupport> to fire with the onchange event of your <apex:selectList>. You can have that fire a method in your controller to have it insert a record for you.