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
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