On 8 April 2011 12:56, DenesL <[email protected]> wrote: > > What do you have in the form.accepts?.
Nothing. I have tried: if form.accepts(request <http://web2py.com/book/default/docstring/request>.vars, session <http://web2py.com/book/default/docstring/session>): session <http://web2py.com/book/default/docstring/session>.flash = 'form accepted' redirect <http://web2py.com/book/default/docstring/redirect>(URL <http://web2py.com/book/default/docstring/URL>('next')) elif form.errors: response <http://web2py.com/book/default/docstring/response>.flash = 'form has errors' else: response <http://web2py.com/book/default/docstring/response>.flash = 'please fill the form' but then it just flashes 'please fill the form' and gives back an empty form. This happens in both cases. Without this at least the crud-form works. Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine power has given us everything we need for life and godliness through the full knowledge of the one who called us by his own glory and excellence. 2 Pet. 1:2b,3a

