Getting values of select type without putting it on database

Something like mentioned in below link?