Php learning materials-PHP Tutorial

Source: Internet
Author: User
Php learning materials are fragmented. When you use the verification code, use strtolower ($ str) to convert it to lower-case strtoupper to upper-case. when you need to pass a value to the current user, you can use AJAX and many other methods, such as varurlxxx. php; vardata {}; $. post {url, used for dat verification code

Strtolower ($ str) to lowercase

Strtoupper to uppercase

You can use AJAX and many other methods when you need to pass a value to this object,

Var url = "xxx. php ";
Var data = {};
$. Post {url, data, function (){
If (data ){
Alert (data); // you will find that the pop-up data contains the value you passed and the code for the entire page.
}
}}

If (! Empyt ($ _ QUEST ['action']) {
Echo "1 ";
// Execute the code
} Else {

}
Var url = "xxx. php? Action = create ";
Var data = {};
$. Post {url, data, function (){
If (data ){
Alert (data); // This time only the information you want to output.
}
}}

Strtolower ($ str) to lower case strtoupper to upper case when you need to pass a value to the current user, you can use AJAX, and many other methods, var url = "xxx. php "; var data ={}; $. post {url, dat...

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.