thank you so much for your hint, massimo, i want to follow your advice to put the logic in controller but, i can't , because i'm using the variable that produced by for loop in view side, that i can't do it in controller side. do you have any solutions to put the logic in controller side that have the for loop function that i learn from web2py.com/book?
any suggestion, correction is greatly appreciate. thank you very much in advance. On Mon, May 23, 2011 at 7:59 AM, Massimo Di Pierro < [email protected]> wrote: > 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. >

