Form created in PHP and submitted by ajax