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
Undefined index: username
sessions.php
Your coding is correct.Remove processData and contentType from Ajax it will work
processData : false, contentType : false,