Could you please explain how web.input works for multiple entries? For
example, consider the entry /example.com?id=10&id2=20:

def POST(self):
        # Assume, the HTML name for the input is 'entry'
        # web.input stores the user input in a dictionary-like object
ie. entry ={} - yes/no?
        # entry = web.input()
        # In our example, entry = {id:10, id2:20}
        # a = entry.id or a = entry["id"]
        # b = entry.id2 or b = entry["id2"]
        # Btw, what does web.debug(entry) do?

        entry = web.input()
        web.debug(entry)
        a = entry.id
        b = entry.id2
        return

Is this correct?

Dinesh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to