PHP learning materials and bits and pieces_PHP tutorial

WBOY
Release: 2016-07-21 15:33:15
Original
853 people have browsed it

When verifying the code, use

strtolower($str) to convert to lowercase

strtoupper to convert to uppercase

When you need to pass a value to the client, you can use AJAX and many other methods.

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, as well as the code of the entire page
 }
}}

if(!empyt($_QUEST ['action'])){
echo "1";
//Execute code
}else{

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322603.htmlTechArticleWhen verifying the code, use strtolower($str) to convert it to lowercase strtoupper and convert it to uppercase. When you need to pass a value to the text, You can use AJAX and many other methods, var url = "xxx.php"; var data={}; $.post{url ,dat...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template