Change getData() method to parse anything with a name attribute, not just <input> elements