Can I extract all input field values into the session as a single check?

I’m curious, can I write a single check that extracts the name and value from every input field, and store them in a map (in the session), which I can then modify and re-submit?

Thanks! Very clean.