leftframe中的left.php: 
<?php 
$prof_sql="select * from item where indicator='1'and item_grade='1'"; 
$prof_result=mysql_query($prof_sql,$linkid); 
$m=mysql_num_rows($prof_result); 
while($myrow=mysql_fetch_array($prof_result)) 

$parent_id=$myrow["item_id"]; 
echo $parent_id; 
echo $myrow["item"]."<><br>"; 
$course_result=mysql_query("select item_id,item from item where item_superior='$parent_id'",$linkid); 
$course_num=mysql_num_rows($course_result); 
while($row=mysql_fetch_array($course_result)) 

$id=$row["item_id"]; 
echo $id; 
printf("<a href=\"%s?i=%s&j=%s\" target='mainframe'>%s</a><br>\n", 
$PATH_INFO,$id,$parent_id,$row["item"]); 


?> 
在mainframe中: 
<?php 
if($i) 
{a1.php; 

else 
{b1.php} 
?> 
怎么改,谢谢!

解决方案 »

  1.   

    你的$PATH_INFO是/left.php,那肯定在弹出的页面会有left.php把$PATH_INFO改成包含
    <?php 
    if($i) 
    {a1.php; 

    else 
    {b1.php} 
    ?> 语句的那个文件名
      

  2.   

    我改过后,可是怎么又弹出个页面是只有main.php中内容,可是它不是在我的右边的框架中呀
    我的页面的框架集all.php(top.php,left.php,main.php)
    可是改过后,我写在左边的:
      printf("<a href=\"main.php?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
                           $id,$parent_id,$row["item"]);
    我点了链接后,参数也传过了,但是
    它为什么不在右边的框架中显示,而是有弹出个页面呢?
      

  3.   

    很有可能是名字的问题 'mainframe' 对否?