Home  >  Article  >  Backend Development  >  PHP learning materials and bits and pieces_PHP tutorial

PHP learning materials and bits and pieces_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:33:15848browse

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...
Statement:
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