通过请求参数替换php网页内容
例:我有这样一个网页nico.php,我想通过请求参数来修改邮箱lizhixin0521@gmail.com
![](https://technology.sharespace.top/wp-content/uploads/2023/02/image-1024x112.png)
1、修改网页源码,将邮箱用下面的代码覆盖。
<?php if ( empty(strip_tags($_GET["param1"])) ) { echo "lizhixin0521@gmail.com"; } else { echo strip_tags($_GET["param1"]); } ?>
2、带参数请求网页,你会发现域名地址以改变。
https://technology.sharespace.top/nico.php?param1=nico.li@gmail.com
![](https://technology.sharespace.top/wp-content/uploads/2023/02/image-1-1024x94.png)
![](https://technology.sharespace.top/wp-content/uploads/2022/06/2114471210.png)
![](https://technology.sharespace.top/wp-content/uploads/2022/07/MySQL-Logo.jpg)