MyFlaskTutorial icon indicating copy to clipboard operation
MyFlaskTutorial copied to clipboard

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

Open louisom opened this issue 11 years ago • 7 comments

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!

louisom avatar Apr 13 '13 08:04 louisom

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 avatar Apr 16 '13 15:04 bev-a-tron

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

bev-a-tron avatar Sep 02 '14 22:09 bev-a-tron

Hahahaha...

zealsham avatar Oct 17 '15 18:10 zealsham

You came back after some years

zealsham avatar Oct 17 '15 18:10 zealsham

there is another years lol

louisom avatar Jan 21 '16 08:01 louisom

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

popcycle avatar Mar 21 '16 06:03 popcycle

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.

bev-a-tron avatar Mar 22 '16 16:03 bev-a-tron