hm, not sure about the root cause, had you already try the sqlform or crud?
e.g.
in controllers
def contact_us():
from gluon.tools import Recaptcha
form = SQLFORM(db.contact_us)
form.element('table').insert(-1,TR('',Recaptcha(request,
'PUBLIC',
'PRIVATE',
error_message = 'invalid',
label = 'Verify:',
options = 'theme:"white", lang:"fr"'),''))
if form.process().accepted:
response.flash = 'Thanks!'
elif form.errors:
response.flash = 'Invalid Entry'
else:
response.flash = 'No thanks!'
return dict(form = form)
in views
{{extend 'layout_default.html'}}
{{=form}}
best regards,
stifan
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.