Hi all, I am working through the manual for web2py the web2py_manual_5th.pdf to be exact. I try to simulate the code that is to be found in the chapter on forms paragraph 7.1 FORMS
I created a new application called testingforms. No changes to any files but the controller default.py I added the following def: def display_form(): form=FORM('Your name:', INPUT(_name='name', requires=IS_NOT_EMPTY()), INPUT(_type='submit')) return dict(form=form) Then I added the default/display_form.html file and added: {{extend 'layout.html'}} <h1>Testing a form</h1> {{=form}} {{=BEAUTIFY(response._vars)}} Than, at looking at http://127.0.0.1:8000/testingforms/default/display_form the view shows a double form-entry: Testingforms Testing a formYour name: form:Your name:Why does this happen and what did I do wrong here? Meanwhile I tested around somewhat and discovered that - if I remove the {{form}} entry inside the display_form view, the form is still shown. that means, the lower part of the image show above shows up. Don't know why this happens Tia Frank -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.