Technically nothing prevents from doing this:
{{
form=SQLFORM(....)
if form.accepts(request): redirect(...)
}}{{=form}}
but don't. ;-)
Put the logic in the controller.
On May 22, 7:12 pm, pbreit <[email protected]> wrote:
> I'm still not sure how this woud work since the controller needs to create
> the form in order to do the form.accepts() processing. What does your
> controller look like. Are there any examples in the book of creating the
> form in a view? If not, I'm guessing it's not possible.