Not really a theme thing, but look at the Form API in the Moodle developer documentation. Also look at how the file based admin settings work.
Themes
Signup Form
This discussion has been locked so you can no longer reply to it.