What exactly is not working as expected? Could you post your code (the parts that you already have)?
Checkbox example: Form validation - checkbox?
As single select works like a standard input field as far as fetching the data from the field is concerned.