Update state from posted values.