0

I'm using a form inside a table, so I can display it as a sudoku grid. web.py's forms seem to dictate the layout of your forms.

Am I doing things the right way ?

jokoon
  • 6,207
  • 11
  • 48
  • 85
  • Wild stab but does it have a request object? – PsyKzz Oct 28 '14 at 15:57
  • possible duplicate of [web.py: how to get POST parameter and GET parameter?](http://stackoverflow.com/questions/10174738/web-py-how-to-get-post-parameter-and-get-parameter) – wenzul Oct 28 '14 at 16:17

2 Answers2

1
user_data = web.input()

http://webpy.org/cookbook/input

Also checkout SO...

wenzul
  • 3,948
  • 2
  • 21
  • 33
1

Yes, although it's a bit difficult to find the relevant section in the docs.

GET/POST parameters can be retrieved using web.input(). Each parameter in the query string can be accessed as an attribute of the returned object:

class IndexHandler(object):
    def GET(self):
        data = web.input()
        print data.parameter_name

Raw POST data can be retrieved using web.data().

Stefano Sanfilippo
  • 32,265
  • 7
  • 79
  • 80