accessing the name of post vars

25 views
Skip to first unread message

karthikeyan p

unread,
May 24, 2019, 4:11:12 AM5/24/19
to web2py-users

how to get "sum" in controller ??

黄祥

unread,
May 24, 2019, 4:15:12 AM5/24/19
to web2py-users

how to get "sum" in controller ??

did request.vars not work ?
ref:

best regards,
stifan 

karthikeyan p

unread,
May 24, 2019, 4:21:13 AM5/24/19
to web...@googlegroups.com
Hi

Thanks for reply.

I want to access the posting variable name not is value . Is there any way ?

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/VmahN3VYFDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/d6ef57a3-0973-4418-a869-693f592de9cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

黄祥

unread,
May 24, 2019, 4:29:58 AM5/24/19
to web2py-users
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:

best regards,
stifan 

villas

unread,
May 24, 2019, 6:41:58 AM5/24/19
to web2py-users
Either:
request.args(0) == 'sum'

Or:
Reply all
Reply to author
Forward
0 new messages