非常实用的php弹出错误警告函数
php弹出错误警告函数
php弹出错误警告函数
//********弹出alert框并跳转到指定页面******// function alert($message,$url='',$isAlert=true,$title='提示'){ echo '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>',$title,'</title></head><body>'; echo '<script type="text/javascript">'; echo $isAlert?'alert("'.$message.'");':''; echo $url==''?'history.back();':'location.href="'.$url.'";'; echo '</script>'; echo '</body></html>'; exit(); }
- 上一篇:迷你REST客户端及服务器端
- 下一篇:PHP 不支持CURL的解决方法
精彩图集
精彩文章