[web2py] Re: accessing the name of post vars

2019-05-24 Thread villas
Either: www.example.com/welcome/default/index/sum request.args(0) == 'sum' Or: www.example.com/welcome/default/index?key=sum request.vars.key == 'sum' On Friday, 24 May 2019 09:11:12 UTC+1,

Re: [web2py] Re: accessing the name of post vars

2019-05-24 Thread 黄祥
> > I want to access the posting variable name not is value . Is there any way > ? > there should be any way for those who seeks *pls try (untested)* dict_post_vars = request.post_vars dict_post_vars.keys() *ref:* http://web2py.com/books/default/chapter/29/02/the-python-language#dict best rega

Re: [web2py] Re: accessing the name of post vars

2019-05-24 Thread karthikeyan p
Hi Thanks for reply. I want to access the posting variable name not is value . Is there any way ? On Fri, 24 May 2019 at 1:45 PM, 黄祥 wrote: > www.example.com/welcome/default/index?sum >> >> how to get "sum" in controller ?? >> > > did request.vars not work ? > ref: > http://web2py.com/books/de

[web2py] Re: accessing the name of post vars

2019-05-24 Thread 黄祥
> > www.example.com/welcome/default/index?sum > > how to get "sum" in controller ?? > did request.vars not work ? ref: http://web2py.com/books/default/chapter/29/04/the-core#request best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github