Home >Backend Development >PHP Tutorial > 关于GET获取值为空提示有关问题

关于GET获取值为空提示有关问题

WBOY
WBOYOriginal
2016-06-13 12:55:431103browse

关于GET获取值为空提示问题
请问GET获取的值为空的时候,显示提示框,点确认后回来原来那个页面,本页面不执行,请问怎么实现!


------解决方案--------------------
if(empty($_GET['xxx'])){
    echo "<script>alert('空');history.back();</script>";
    exit;
}
Statement:
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