POST results of multiple checkbox selections

Sigh… sometimes taking the effort to type things out like I did triggers my old brain.

The solution is to store the multiple options in an array, then just iterate down the Dict testing the values for whether they’re an array. When you hit an array, you throw in another loop to peel those values out.

form_data = ""

for (i, (k, v)) in enumerate(payload)
    if isa(v, Array) || isa(v, Tuple)
        for w in v
            form_data = form_data * k * "=" * w * "&"
        end
    else
        form_data = form_data * k * "=" * v * "&"
    end
end

But, please, if anyone has a different solution, I’d love to see it.

Thanks again.