161 <?php
162 switch ($_GET['fav']) {
163 case 0:
165 echo "";
166 break;
167 case 1:
168 echo "File Added.";
169 break;
170 } ?>
打印错误:
Notice: Undefined index: fav in /***/theme/v7/Downloads-Item.php on line 162
工作原理:
http://www.example.com/websitepage => error warning appears
http://www.example.com/websitepage?fav=1 => code work..
怎么了?这个错误的原因是什么?