应该不是php配置的问题,好好看看你的程序,把116行注释掉看看行不?这样的问题,因该是前面115行中有错误的

解决方案 »

  1.   

    for ($i=0;$i<$recordnum;$i++)
    {
    $opt.="&name[".$i."]=".$name[$i];
    }
    echo $opt;
    echo "<meta http-equiv=\"refresh\" content=\"2;url=index.php?<?php print $opt ?>\">";我用editplus编辑,在最后一行的$opt 的?颜色跟前面的字符串颜面不一样了,
    好像是没把?当作普通字符处理了
      

  2.   

    for ($i=0;$i<$recordnum;$i++)
    {
    $opt.="&name[".$i."]=".$name[$i];
    }
    //echo $opt;
    $mm="<meta http-equiv=\"refresh\" content=\"2;url=index.php?".$opt.">";
    echo $mm;
    如果改为这样,结果是显示<meta http-equiv="refresh" content="2;url=index.php?>面不是所想要的页面重定向
      

  3.   

    echo "<meta http-equiv=\"refresh\" content=\"2;url=index.php?<?php print $opt ?>\">";错误解析:
          1:<?php print $opt ?>直接使用 $opt就可以了!
      

  4.   

    不对啊,我发现程序是把$opt后面的 ?>当作与前面<?php匹配的符号而结束了php程序 ,从而引起错误的。
      

  5.   

    大错特错!!!!echo 输出的是后面引号包含的内容,
    除了变量用变量值替换之外,在两个引号之间的内容都
    会输出来的!!你这种引号里包含:<?php print $opt ?>的写法是错误的
      

  6.   

    ok.我自己搞定了,谢谢您的关心!
    加分啦。
    $opt="?";//把?赋给$opt初值
     for ($i=0;$i<$recordnum;$i++)
    {
    $opt.="&name[".$i."]=".$name[$i];
    }
    echo $opt;
    print "<meta http-equiv=\"refresh\" content=\"2;url=index.php".$opt."\">";
    }