Programming a select combo box in php

how can i program a select field in php mysql so as to update the value and use it in another field.
thanks