$_POST is not working in ajax form submit?

后端 未结 11 1674
遥遥无期
遥遥无期 2021-01-17 12:57

When I try to check user input name is already exist by ajax form submit !But it only get Undefined index: username in sessions.php ,what is missin

11条回答
  •  感动是毒
    2021-01-17 13:56

    Remove that method,action: post and blank from your form tag as you need to give all details in ajax method only.

    or you can delete the form tag itself as ajax method will take care of the post call.

    this will solve hopefully

        

提交回复
热议问题