So i am using ajax request to submit a form through a link. However, when I want to receive inputs in my php, I don’t know how to do so. For instance, I normally do this
if($_SERVER["REQUEST_METHOD"]=="POST&&isset($_REQUEST["register"]))
{
//do stuf here
}
But now when the ajax has submitted the code, how can I check form submission. I don’t even have the register (input type submit). Whenever, I do so the error message shows `No such index” for form inputs that are inside there.
Note that you can always check if the current request is an AJAX: