标签:
009.php
1 <?php 2 echo "<a href=‘009b.php?action=add‘>添加</a><br/>"; 3 echo "<a href=‘009b.php?action=del‘>删除</a><br/>";
009b.php
1 <?php 2 $action = $_GET["action"]; 3 switch ($action) { 4 case "add": 5 echo "<script>alert(‘添加成功!‘);</script>"; 6 break; 7 case "del": 8 echo "<script>alert(‘删除成功!‘);</script>"; 9 break; 10 }
标签:
原文地址:http://www.cnblogs.com/yuge790615/p/4788390.html