Update Script

Update Script

I need help with the update script.  The sample in the help section is not clear to me at all.  I am using one form that populates in part with data from another form.  That script I FINALLY figured out.  But I also want any changes made to the data in the second form to update any changes made to the data that was pulled from the first.  Below is the fetch script.  What do I need to do to make this update function happen?

  1. temp = Membership_Data[MembershipID == input.DMembershipID];
  2. DOrganization=temp.Organization;
  3. DFirst_Name=temp.First_Name;
  4. DLast_Name=temp.Last_Name;
  5. DDegree1=temp.Degree1;
  6. DEmail_Address=temp.Email_Address;
  7. DPhone_Number=temp.Phone_Number;
  8. DFax_Number=temp.Fax_Number;
  9. DAddress_1=temp.Address_1;
  10. DAddress_2=temp.Address_2;
  11. DCity=temp.City;
  12. DState=temp.State;
  13. DMailing_Code=temp.Mailing_Code;
  14. DCountry=temp.Country;
  15. DWebsite=temp.Website;
  16. temp.Address_1=input.DAddress_1;