simple_form = form.Form(
form.Textbox('name', description='Name'),
form.Textbox('surname', description='Surname'),
form.Button("Send", type = "submit", description = "Register") #
Didn' t you forgot it?
)
In your template is there something like that ? :
<form name="main" method="post">
$:f.render()
</form>
On 14 nov, 22:55, vlatko <[email protected]> wrote:
> this is my code :
>
> import web
> from web import form
>
> render = web.template.render('templates') # your templates
>
> urls = (
> '/', 'index'
> )
>
> simple_form = form.Form(
> form.Textbox('name', description='Name'),
> form.Textbox('surname', description='Surname'),
> )
>
> class index:
> def GET(self):
> f = simple_form()
> return render.register(f)
>
> application = web.application(urls, globals()).wsgifunc()
>
> when i comment 'return render.register(f)' this show me no errors
> but with this line i got 'internal server error'.
> So what is my problem i use webpy 0.3
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---