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

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

WBOY
Release: 2016-06-13 13:47:00
Original
848 people have browsed it

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

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

接着就会报错,

错误信息:Undefined index: uname 


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

探讨

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