Thanks. Doesn't this return both GET and POST params in one object?
I want to be able to get the GET params and the POST params separately. Is there a way to do this? If not, I'll add it myself, I just don't want to be duplicating stuff. TBH I should probably not be so lazy and check out the source tonight :) On Jul 28, 10:49 am, smallfish <[email protected]> wrote: > you can use web.input(), and docment like this:http://webpy.org/cookbook/input > -- > blog:http://hi.baidu.com/smallfish_xy > > 2009/7/28 Steve Anderson <[email protected]> > > > > > Hi, > > > I'm just looking into web.py at the moment. It sounds really cool. > > > I have one question regarding web.input(). Is there a way of > > differentiating between GET and POST variables? For example, if I have > > a form with 'username' and 'password' as POST params, can I check that > > they have actually come through POST rather than GET. > > > I know I can do the important work under the POST method, but it would > > still be nice to make sure someone can't post to that URL with a url > > of something likehttp://example.org/?username=bob&password=password. > > This is more of a sanity thing for me - I'm used to using $_GET and > > $_POST and never $_REQUEST in PHP. > > > Thanks, > > Steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
