PHP Learning material odds and ends _php Foundation

Source: Internet
Author: User
The verification code is used

Strtolower ($str) to lowercase

Strtoupper capitalization

When you need to send a value to this also, you can use Ajax, and many other methods,

var url = "xxx.php";
var data={};
$.post{url, Data,function () {
if (data) {
Alert (data)//will find that the pop-up data contains the values you send, as well as the entire page of the code
}
}}

if (!EMPYT ($_quest[' action ')) {
echo "1";
Executing code
}else{

}
var url = "Xxx.php?action=create";
var data={};
$.post{url, Data,function () {
if (data) {
alert (data);//This time it will only be the information you want to output.
}
}}

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.