我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

获取未定义的索引错误[重复]

This question already has an answer here:

  • “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP 28 answers

Im getting the following error: Notice:undefined index:done please advise what is wrong

 <?php
        if($_Get['done']==1 $msg = "Account details saved";

 ?>
</div>

Check first if the key exists, then the comparison to 1.

if (isset($_GET['done']) && $_GET['done'] == 1) {
    $msg = '...';
}

近期文章

  • 保存后复选框为空
  • JSON编码以创建表
  • CakePHP登录(不是用户表)
  • 路线不在laravel上工作
  • 缩短月份的时间戳php
  • 上传多个图像PHP
  • 在xampp中使用MySQL的会话
  • Mysql动态行到列
  • cURL PHP API调用不起作用
  • 如何在flickr上获取照片信息?
  • 把一个图像放在另一个图像上[重复]
  • 通过php请求表格名称[关闭]
  • php异步cURL请求
  • RewriteBase有2个参数
  • 用PHP显示注册日期[关闭]
  • 警告:非法字符串偏移
  • 条件=真时的Php循环[关闭]
  • 如何在php中加入两个数组
  • PHP重定向循环错误问题
  • 防止价值重叠

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华