You can retrieve URL parameters from the request object like this:

# e.g. www.mysite.com/?my_parameter=hello%20world

class MainPage(webapp.RequestHandler):
  def get(self):
    my_parameter = ''
    for param in self.request.query.split('&'):
      if param.startswith('my_parameter'):
        my_parameter  = param.split('=')[1]


On 25 Okt., 07:40, fishfin <[EMAIL PROTECTED]> wrote:
> I'm coming over from php and am trying to figure out how to do
> something.
>
> In php you can put data in the user's address bar (index.php?
> data=somedata) and then get it from the address bar really easily (you
> just use $_GET and $_REQUEST), so I was wondering what the equivalent
> is in python?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to