$_POST is not working in ajax form submit?

后端 未结 11 1587
遥遥无期
遥遥无期 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:48

    Your coding is correct.Remove processData and contentType from Ajax it will work

    processData : false,
    contentType : false,  
    

提交回复
热议问题