Home > php教程 > php手册 > php 学习资料零碎东西_php基础

php 学习资料零碎东西_php基础

WBOY
Release: 2016-05-17 09:01:32
Original
793 people have browsed it

验证码时用

strtolower($str) 转小写

strtoupper 转大写

当需要给本也面传值时,可以用AJAX,等很多方法,

var url = "xxx.php";
var data={};
$.post{url ,data,function(){
  if(data){
    alert(data);//会发现,弹出的data里包含了你传的的值,还有整个页面的代码  
  }
}}

if(!empyt($_QUEST['action'])){
  echo "1";
  //执行代码
}else{

}
var url = "xxx.php?action=create";
var data={};
$.post{url ,data,function(){
  if(data){
    alert(data);//这次就会只有你想输出的信息了。  
  }
}}

Related labels:
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template