문제

What is the better way to get a map with POST form parameters is Yesod. I have a plain HTML form and submit it. In Yesod handler I want to get a map. The key will be the parameter name, the value - value for this name.

The runInputPost and ireq's give me a parameter by name. But form may contain many params. I can't say, how many it will be in the handler at this request.

도움이 되었습니까?

해결책

You can use runRequestBody to get direct access to all of the POST parameters and files.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top