Changed form to use post rather than custom JS function.