How I can make this:
$.ajax({
type: "POST",
url: "",
data: dataString,
cache: false,
success: function(html){}
});
but datatype json
and using it by php
please tell me an example because i tired to search in the internet
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
dataTypeproperty to have a JSON response parsed into a native object:If you’re trying to post JSON data to the server, you will need json2.js to convert your object into a JSON string before posting it:
and in php >=5.2: