Git Product home page Git Product logo

Comments (6)

casperin avatar casperin commented on May 12, 2024

Yes please! I've been at this for 2 days now.

https://stackoverflow.com/questions/51156656/how-do-i-get-the-parameters-from-a-post-request-from-a-html-form-in-actix-web

from examples.

casperin avatar casperin commented on May 12, 2024

I just realized that you are the person who responded on that SO question. Thanks for pointing me in the right direction; I wish it was enough for me to get it, so I could create the example myself and do a PR on it. ... Rust is difficult. It really is.

from examples.

DoumanAsh avatar DoumanAsh commented on May 12, 2024

@casperin I added a bit more detailed answer with step by step instruction how to handle form data

from examples.

casperin avatar casperin commented on May 12, 2024

Thank you so much. I'll get on it again. One thing that still isn't immediately clear from your example is how to access the request in the handler. But let me first see if I can get what you wrote to compile in the first place.

Just to be clear, the example you are referring to is this one, right?

from examples.

DoumanAsh avatar DoumanAsh commented on May 12, 2024

@casperin Yes that one, the thing is that after using extractors you don't have access to original request. The point of extractors though is to transform your request into more suitable data, but for what reason would you need request itself?

Also it would be better to discuss it on gitter

from examples.

casperin avatar casperin commented on May 12, 2024

I jumped into Gitter, but in interest of others dropping by from a google search: To save the logged in state. Something like

    if params.password == "abc123" {
        req.remember("logged-in".to_owned());
        // redirect to home
    };

from examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.