bev-a-tron / MyFlaskTutorial

A Flask Tutorial for people who don't know any web programming. Actually, it would be helpful to know static HTML, also Python.
342 stars 203 forks source link

How can I get the whole string if there have space? #9

Open louisom opened 11 years ago

louisom commented 11 years ago

Hi, first thanks for this tutorial, this tutorial let me think more clear about flask !

I have a question about request.form

ex: app.questions[0] = ("how many year you use Python?", ("2y down", "2y ~ 5y", "5y up")) when I choice "2y down", request.form['answer_from_layout_lulu'] return "2y"

where is the point to fix so I can get "2y down" ?

thanks!

bev-a-tron commented 11 years ago

I'm not sure! Sorry, I'm a bit busy right now! I'll have to play with it later. I'll let you know if I figure it out.

bev-a-tron commented 10 years ago

Would it work to escape the space character? (Hahah, I know this was over a year ago!)

zealsham commented 8 years ago

Hahahaha...

zealsham commented 8 years ago

You came back after some years

louisom commented 8 years ago

there is another years lol

popcycle commented 8 years ago

Hello Beverly, I was up to continuing the lesson when I ran the 1st lesson only to get this error. I double checked the code and also found another similar code in the web. Should I be triggering something else? Thank you - Carlos

hello flask tutorial

bev-a-tron commented 8 years ago

I think you're visiting the wrong page. You need to go to http://127.0.0.1/hello_page_carlos. It looks like you're going to http://127.0.0.1/hello_carlos.py.