Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:50:16+00:00 2026-06-14T03:50:16+00:00

I am trying to collect a group of data using a form, but I

  • 0

I am trying to collect a group of data using a form, but I don’t know how to get data from the form using POST. Thanks in advance. The program:

main.py

    from google.appengine.ext import db
    import webapp2
    import common

    class Company(db.Model):
        name: db.StringProperty()
        image: db.BlobProperty()
        url: db.URLProperty()

    class MainPage(webapp2.RequestHandler):
        def get(self):
            common.render(self, 'main.html', {'range': range(10)})

        def post(self):
            # How to do the following?
            for i in range(10):
                company = Company()
                company.name = self.request.get("name")
                company.image = self.request.get("image")
                company.url = self.request.get("url")
                company.put()            

    app = webapp2.WSGIApplication([('/', MainPage)], debug=True)

main.html

    <form action="/"  method="post" enctype="multipart/form-data">
    <table>
    <tr><th></th><th>Company</th><th>Image</th><th>URL</th></tr>
    {% for i in range %}
      <tr>
        <td>{{ forloop.counter }}: </td>
        <td><input type="text" name="name" id="name" /></td>
        <td><input type="file" name="image" id="image" /></td>
        <td><input type="text" name="url" id="url" /></td>
      </tr>
    {% endfor %}
    </table>
    <input type="submit">
    </form>

— Tang

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:50:17+00:00Added an answer on June 14, 2026 at 3:50 am

    .getall(key) should do it for you.

    # All values for a key: ['a', 'b']
    check_values = request.POST.getall('check')
    

    Webapp2 Request Data

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to collect data using the following query : SELECT * FROM `table1`
I'm trying to collect emails from a group of people using the following: def
I am trying to collect some data from multiple subsets of a data set
With Node I am trying to collect user data from an LDAP server and
I am trying to collect the values from command line using Getopt::Std in my
Suppose I am trying to collect data from sensors at a high rate, and
I'm trying to collect equations from my users, but my CodeIgniter installation is removing
I am trying to find a way to collect data using sql aggregate functions
I am trying to collect popular keyword data by using a search engine API.
We are trying to collect data on each person that used a certain coupon

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.