arrays, hash of hashes, etc in html forms and dancer param()
Hello all, I saw once somewhere an example of how to name param names in HTML forms to be able to receive structures like arrays, hash of hashes [of arrays [of hashes]], etc. I want to stop using CGI::WebIn, but could not find now that examples for Dancer' param(). Does somebody know where can it be? -- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130
Hello, 2012/8/12 Nick Knutov <mail@knutov.com>:
Hello all,
I saw once somewhere an example of how to name param names in HTML forms to be able to receive structures like arrays, hash of hashes [of arrays [of hashes]], etc.
I want to stop using CGI::WebIn, but could not find now that examples for Dancer' param(). Does somebody know where can it be?
You can find discussion about this at https://github.com/sukria/Dancer/issues/649 -- Sergiy Borodych
Thanks, but I thought I saw the solution, and it was more common (example in the first comment can't work with hashes, hash of hashes, etc). I think it is important moment and it should be solved in some way. May be not very convenient/optimal, but at least solved. As I see now, then only alternative is to use CGI::WebIn in the way which is more hack, then normal usage. Additionally, CGI::WebIn is slow. Very slow. 13.08.2012 12:01, Sergiy Borodych пишет:
Hello,
2012/8/12 Nick Knutov <mail@knutov.com>:
Hello all,
I saw once somewhere an example of how to name param names in HTML forms to be able to receive structures like arrays, hash of hashes [of arrays [of hashes]], etc.
I want to stop using CGI::WebIn, but could not find now that examples for Dancer' param(). Does somebody know where can it be?
You can find discussion about this at https://github.com/sukria/Dancer/issues/649
-- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130
participants (2)
-
Nick Knutov -
Sergiy Borodych