You can set a onchange
event to the select. You read the changed value and create fields (number of fields according to the changed value) where the user can fill with the data.
You can do this using jquery or javascript.
Check if this is what you want (using jquery): http://jsfiddle.net/67NHf/