EXAMPLE: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-in-HTML
Mi model: db.define_table('solicitud',Field('ape', requires=IS_NOT_EMPTY())) Mi controler: def solicitud(): form = SQLFORM(db.solicitud) if form.accepts(request,session=None, formname=None): response.flash = 'Acceptado' elif form.errors: response.flash = 'Errores %s --- %s ---- %s' % (form.errors,form.vars,request.vars) else: response.flash = 'Llene el formulario' return dict() Mi view: {{extend 'layout.html'}} <h3>{{= T('Nueva Solicitud')}} </h3> <form action="#" enctype="multipart/form-data" method="get"> Apellido: <input name='ape'/> <input type="submit"/> </form> Never passes the validation and always throws errors. Anyone know what I'm doing wrong? -- -- Federico Ferraro Usuario Linux : 482533. -- -- 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.