I understood.

Thanks!

Fabiano.


2014-05-21 4:26 GMT-03:00 Niphlod <niph...@gmail.com>:

> if you want to code by hand...be sure to know HTML first.......where are
> "action" and "method" attributes for the form ?
>
> you'll collect vars from request.post_vars, hopefully.
>
>
> On Tuesday, May 20, 2014 9:48:45 PM UTC+2, Fabiano Almeida wrote:
>>
>> Hi Niphlod
>>
>> My code:
>>
>> *controller:*
>> def index():
>>     return dict()
>>
>> *view:*
>> {{extend 'layout.html'}}
>> <h1>Relatório Mensal</h1>
>> <br/>
>> <form name="fFiltro" method="post">
>>     <b>Período:</b><br/>
>>     Data Inicial: <input type="date" name="dInicial"> <br/>
>>     Data Final: <input type="date" name="dFinal"> <br/><br/>
>>     <b>Filtragem</b><br>
>>     <input type="radio" name="rbFiltro" value="0"> Todos <br/>
>>     <input type="radio" name="rbFiltro" value="1"> Individual <br/><br/>
>>     <input type="submit" value="Enviar">
>> </form>
>>
>> I don't know how to collect vars from form after submitted. In controller
>> don't have form var to use form.process().
>>
>> Thanks,
>>
>> Fabiano.
>>
>>
>> Em terça-feira, 20 de maio de 2014 16h10min51s UTC-3, Niphlod escreveu:
>>>
>>> start saying what you need to do ;-P
>>> usually request.get_vars, request.post_vars or their "merge"
>>> request.vars are holding the data of the form, but I can't say for sure
>>> without seeing what you did in the view.
>>>
>>> On Tuesday, May 20, 2014 9:08:32 PM UTC+2, Fabiano Almeida wrote:
>>>>
>>>> Hi all,
>>>>
>>>> I created directly in view of a form for report filtering options. How
>>>> do I handle controler in the form after submit?
>>>>
>>>> Thanks,
>>>>
>>>> Fabiano.
>>>>
>>>   --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to