在我的 php 页面中,出现“未定义索引类型”的错误。但是,如果使用字符串打开相同的 URL,例如 mypage.php?type=abc,则不会显示此错误!
我想重定向没有字符串的用户,即从 mypage.php 到 mypage.php?type=abc
我决定更好地纠正php!php代码如下
<?
if (($_REQUEST["type"] == "mz") || ($_REQUEST["type"] == "ie") || ($_REQUEST["type"] == "iea")) {
?>
<link rel="SHORTCUT ICON" href="icons/<?= $_REQUEST['id'] ?>_favicon.ico" type="image/x-icon">
<?
}
?>
<?
if ($_REQUEST["type"] == "mza") {
?>
<link rel="icon" href="icons/<?= $_REQUEST['id'] ?>_extra_animated_favicon.gif" type="image/x-icon">
<? } ?>
2行和最后一行有错误