Nice one :) I just found this in the source and was trying to work out if it did what I wanted it to do.
That's exactly what I was looking for. I'm looking forward to having a play with web.py. On Jul 28, 10:58 am, Anand Chitipothu <[email protected]> wrote: > 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. > > What you need is this: > > web.input(_method='GET') > web.input(_method='POST') --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
