def register(): form=SQLFORM(db.stud_person) print form.errors if form.process().accepted: response.flash='Bitte warten' elif form.errors: response.flash='Bitte fuellen sie das Formular richtig aus'
return dict(form=form) view:- {{=form.custom.begin}} <html> <head> <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/> <link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap3.css')}}"/> </head> <body> <div class="container"> <table class="table"> <tbody> <tr> <td>First Name</td> <td>Middle Name</td> <td>Last Name</td> </tr> <tr> <td>{{=form.custom.widget.first_name}}</td> <td>{{=form.custom.widget.middle_name}}</td> <td>{{=form.custom.widget.last_name}}</td> </tr> </table> <td><div align='center'>{{=form.custom.submit}}</div></td> </html> {{=form.custom.end}} This form is not submited.... deta is not iserting on detabase... This code is right???? -- 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.