时间:2021-07-01 10:21:17 帮助过:2人阅读
check.php
<?php if(isset($_GET[‘action‘])){ switch($_GET[‘action‘]){ case "add": echo "<script>alert(‘add‘);</script>"; break; case "del": echo "<script>alert(‘del‘);</script>"; break; case "search": echo "<script>alert(‘search‘);</script>"; break; case "update"; echo "<script>alert(‘update‘);</script>"; break; default: echo "<script>alert(‘error‘);</script>"; break; } // echo "<script>window.location = ‘test.php‘;</script>"; echo "<script>history.go(-1);</script>"; }
php模拟数据库常用操作效果
标签: