main.py
from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class Sender(webapp.RequestHandler): def get(self): self.response.out.write( """ <html> <body> <form action="/receive" method="get"> <input type="checkbox" name="ch" value="checkbox1"> <input type="checkbox" name="ch" value="check2"> <input type="checkbox" name="ch" value="ch3"> <input type="submit" value="push" /> </form> </body> </html> """ ) class Receiver(webapp.RequestHandler): def get(self): arr = self.request.GET.getall("ch") for s in arr: self.response.out.write(s) application = webapp.WSGIApplication([ ("/receive", Receiver), ("/", Sender) ], debug=True) def main(): run_wsgi_app(application) if __name__ == "__main__": main()
0 件のコメント:
コメントを投稿