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

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

WBOY
Release: 2016-06-13 12:55:43
Original
1100 people have browsed it

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


------解决方案--------------------
if(empty($_GET['xxx'])){
    echo "<script>alert('空');history.back();</script>";
    exit;
}
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template