You can pull the data from a db with that same concept. Use the first combo to select a category. Use an onchange event to trigger a form submit and query the database based on the selection and then regenerate the second combo box with the values that were pulled.
CodingForums Supreme Overlord
All Hail Spookster