Why is phpajax used for help? $. Ajax ({& nbsp; url: 'mycover. php', & nbsp; method: & quot; POST & quot;, & nbsp; data: {arcids: obj. arcid}, & nbsp; questions about php ajax for New su users?
$. Ajax
({
Url: 'mycover. php ',
Method: "POST ",
Data: {arcids: obj. arcid },
Success: function (data)
{
Alert (data );
If (data = "0 ")
{// Succeeded
Alert ('success ');
}
Else
{// Incorrect
Alert ('Incorrect ');
}
}
});
The strange thing is that alert (data) is the original code of mycover. php, not the execution result of mycover. php.
What should I do if I encounter this problem?
------ Solution --------------------
1. mycover. php uses a short tag, but php configuration does not allow
2. low-level errors. you didn't use http to access this program.
------ Solution --------------------
You can insert data into a div or element using js (where you need to use data) so that the running page can display the effect on the browser.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service