Home > Article > Backend Development > PHP learning materials and bits and pieces_PHP tutorial
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.
}
}}