代码如下:
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=GB2312"/>
<title>学生信息查询主框架</title></head>
<frameset cols="73%,*">
<frame  frameborder="0" src="StuSearch.php" name="search_frmleft" scrolling="no" noresize>
<frame  frameborder="0" src="info.php" name="search_frmright" scrolling="no" noresize>
</frameset><noframes></noframes>
</html>
这段是.html的但是点击无法进去,而是直接转跳到dreamweaver8里显示代码

解决方案 »

  1.   

    一个主题框架,下面有2个PHP标签页。可是无论如何都显示不出来包括下属的标签页。代码给你看下:
    <?php
    require "fun.php";
    header("Cache-Control: No-Cache"); //不使用缓存
    header("Pragma: No-Cache");
    session_start(); //启动SESSION
    @$number=$_GET['id']; //得到StuQuery.php页面的链接中传来的值
    $_SESSION['number']=$number; //使用SESSION将学号传到其他页面
    $sql="select BZ,ZP from XSB where XH='$number'"; //查找备注和照片列
    $result=mysql_query($sql);
    $row=mysql_fetch_array($result);
    $BZ=$row['BZ'];
    $ZP=$row['ZP'];
    ?>
    <html>
    <head>
    <title>备注和照片信息</title>
    <style type="text/css">
    <!--
    .STYLE1 {font-size: 16px; font-family: "幼圆";color:"#0000FF";}
    -->
    </style>
    </head>
    <body bgcolor="D9DFAA">
    <br><br><br><table width="100" border="1">
    <tr><td class="STYLE1" align="center">附加信息</td></tr>
    <tr><td class="STYLE1" bgcolor="#CCCCCC" align="center">备注</td></tr>
    <tr>
    <td><textarea rows="7" name="StuBZ" ><?php if($BZ)echo $BZ;else echo "暂无";?></textarea></td></tr>
    <tr><td class="STYLE1" bgcolor="#CCCCCC" align="center">照片</td></tr>
    <tr><td height="150" align="center">
        <?php 
         if($ZP)
         //调用showpicture.php页面显示照片,time()函数用于生成时间戳
         echo "<img src='showpicture.php?time=".time()."'>";
         else
          echo "<center>无</center>";
        ?></td></tr>
    </table>
    </body>
    </html>另一个标签页:
    <html>
    <head>
    <title>学生信息查询</title>
    <style type="text/css">
    <!--
    .STYLE1 {font-size: 15px; font-family: "幼圆";}
    .STYLE2 {font-size: 15px; font-family: "幼圆";color:"#800080";}
    -->
    </style>
    </head>
    <body bgcolor="D9DFAA">
    <div align=center><font face="幼圆" size="5" color="#008000"><b>学生信息查询</b></font></div>
    <form action="StuSearch.php" method="get" style="margin:0">
    <table width="480" border="1" align="center" cellpadding=0 cellspacing=0>
    <tr>
    <td height="10" class="STYLE1" bgcolor="#CCCCCC">学号:</td>
    <td><input name="StuNumber" size="13" type="text"></td>
    <td class="STYLE1" bgcolor="#CCCCCC">姓名:</td>
    <td><input type="text" size="13" name="StuName"></td>
    <td class="STYLE1" bgcolor="#CCCCCC">专业:</td>
    <td><select name="select">
            <option>所有专业</option>   
           <option>计算机</option>
           <option>通信工程</option>
           </select></td>
    <td bgcolor="#CCCCCC" align="center">
    <input type="submit" name="Query" class="STYLE1" value="查询"></td>
    </tr>
    </table>
    </form>
    <?php
    @include "StuQuery.php"; //包含StuQuery.php页面
    ?>
    </body>
    </html>
      

  2.   

    单独的php文件都不能打开。。你确定环境配好了?
      

  3.   


     我真心没搞懂他在描述什么...是点击框架里的php页面没显示结果直接 跳到了 dw 编辑器去了?
      

  4.   

    貌似无法打开local host
    求环境配置
      

  5.   

    http://www.apachefriends.org/zh_cn/xampp-windows.html看帮助吧,我是没装过这个的 不过推荐给你用