If you want the additional input fields to become visible without reloading the page, then you will need to use javascript to accomplish this. Something along these lines: http://www.felgall.com/jstip22.htm
If a page reload is OK, then once the user submits the form, simply reload the page with the new fields.