Replace form submission code with expected format.