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 8959295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:24:05+00:00 2026-06-15T15:24:05+00:00

I think this one is a really easy one for many out there, but

  • 0

I think this one is a really easy one for many out there, but I actually do not get why my script isn’t working, well Im new on this so if someone out there the answer, I would be happy.

The form simply takes one param and posts it to the same form on the same page, but for now when the page reloads the param doesn’t show, I don’t know if it is the python thats wrong or weather it is the html, anyway I have no idea as I don’t get any error messages…

import webapp2

form="""
    <h2>Enter some text</h2>
    <form method="post">
        <textarea name="text" value=%(word)s style="height: 100px; width: 400px;">
        </textarea>
        <br>
        <input type="submit">
    </form>
 """

class MainHandler(webapp2.RequestHandler):
    def write_form(self, text=""):
        self.response.write(form % {"word": text})

def get(self):
    self.write_form()

def post(self):
    text=self.request.get("text")
    self.write_form(text)

app = webapp2.WSGIApplication([('/', MainHandler)], debug=True)
  • 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-15T15:24:05+00:00Added an answer on June 15, 2026 at 3:24 pm

    textareas don’t have a value attribute – instead the content should be inside the textarea open/close tag.

    eg:

    <textarea>%(word)s</textarea>
    

    It’s worth looking into templating though, but you mention that may be coming up further in your tutorial so…

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

Sidebar

Related Questions

I really nead to ask you this one, many of you might think it's
This is a really easy question, but I can't figure out what I should
I think this will be a really easy one for anyone that is decent
i think this should be very easy , but i really don't know how
This is probably a pretty easy one, but I'm trying to think of the
I think this is going to be one of those simple-when-you-see-it problems, but it
I think I already know the answer to this one, but i hope maybe
This is a really easy question I'm sure but I'd appreciate the help. :)
This is a really easy one that I thought would be easily found on
This should be easy, but I cannot seem to get it right as I

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.