Home  >  Article  >  Backend Development  >  空变量值报错, 怎么修改php.ini

空变量值报错, 怎么修改php.ini

WBOY
WBOYOriginal
2016-06-13 13:47:00829browse

空变量值报错, 如何修改php.ini
比如一条语句:
  $uname=$_GET["uname"];

其实GET传递的时候可能没有uname过来, 但是我也这么赋值了。

接着就会报错,

错误信息:Undefined index: uname 


------解决方案--------------------

探讨

弱弱的问一句,,, 我怎么没看有帖子置顶,求URL。
没事做只能码代码~~~
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