Extract form data from a hash of elements