First, you have to call form.accepts() (or preferably form.process())
before serializing the form in the view. Second, please, please do not do
this all in the view. Define the form and do the processing in a
controller. See chapters 3 and 7 of the book for plenty of forms examples.
Anthony
On Thursday, August 30, 2012 1:16:17 AM UTC-4, qwer qwer wrote:
>
>
>
>
>
> why doesn't it work? How to make it work?? Thanks
> Enter code here...{{form=FORM('Your
> comment:',INPUT(_comment='_comment',requires
> =IS_NOT_EMPTY()),
> INPUT(_type='submit'))}}
> {{ def ded(): if form.accepts(request,session): response.flash =
> 'Your information has been sent successfully'}}
>
> {{=form}}
> {{ded()}}
>
> :)
>
--