creating POST array from data attributes working