thanks .. if I do form processing in controller, I need to generate a URL 
to that function, then just the form appears in the tab. But what I want is 
I should get the form in the index.html page only .i.e, the form should be 
in the middle of different other elements of index.html.. how can i do it? 
thanks again

On Thursday, August 30, 2012 10:52:29 AM UTC+5:30, Anthony wrote:
>
> 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()}}
>>
>> :) 
>>
>

-- 



Reply via email to