<%doc> an example firstname/lastname/occupation registration form. <%python> import formvisitor as form registerform = form.Form('myform', 'register.myt', elements = [ form.TextField('firstname', 'First Name', size=50), form.TextField('lastname', 'Last Name', size=50), form.SelectField('occupation', 'Occupation', options = [ form.OptionField('skydiver', 'Sky Diver'), form.OptionField('programmer', 'Computer Programmer'), form.OptionField('', 'No Answer'), ] ), form.SubmitField('register') ] )

This page illustrates the usage of module components to create programmatically-oriented page components, in contrast to regular template-oriented components.

Welcome to the Skydivers or Computer Programmers Club ! <& @formvisitor:generate_form, form = registerform &> <%method title> Myghty Examples - Form Visitor