PHP与jquery前后台交互的小程序

 1 <!DOCTYPE HTML>
<html>
<head>
<meta charset = "utf-8">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script>
$(function(){
$("#button").click(function(){
$.post("index8.php",{"a":"hello","b":"世界"},function(data,status){
alert(data);
});
});
});
</script>
</head>
<body>
<input type = "button" id = "button" value = "button" name = "button">
</form>
</body>
</html>
 <?php
$a = $_POST['a'];
$b = $_POST['b'];
$c = "d";
$$c = "world";
echo $d;
echo $a;
?>

作为自己的一个小练习吧!

上一篇:【BZOJ1044】[HAOI2008]木棍分割


下一篇:Qt的内存管理机制