I wanna kn is it possible to pass query string along with URL when we call on Jquery Ajax;
Example :
$.ajax({
type: "POST",
url: "index.php?task=addNewInfo",
data: $('#regForm').serialize(),
dataType: "json",
.....
});
So does the query string from the param task works fine? or we need to do it the other way?
Thank you.
Send the task in the data parameter
This is for using POST method.
If you want to use GET method then Arun’s solution will work fine.