你的连接的网页很有问题的body里面怎么会包含html啦!好好检查一下

解决方案 »

  1.   

    下面是连接的网页<?php
    include "frist.php";
    ?>
    <link href="../images/outwin.css" rel="stylesheet" type="text/css">
    <body class="outwin" background="../images/bg005.gif" >
    <?php
    $yourname=$_POST['yourname'];
    $costofonebook=$_POST['costofonebook'];
    $numbersofdaysbuying=$_POST['numbersofdaysbuying'];$Today=date("l F d,Y");
    ?>
    <html>
    <head>
    <title>请教</title>
    </head>
    <body>
    今天的日期:
    <?php
      print("<h3>$Today</h3>\n");
      print("您好$yourname,您一共消费了");
      print($costofonebook*$numbersofdaysbuying);
      print("元。<br>\n");?>
    </body>
      

  2.   

    <?php
    ob_start();
    include("frist.php");
    $yourname=$_POST["yourname"];
    $costofonebook=$_POST["costofonebook"];
    $numbersofdaysbuying=$_POST["numbersofdaysbuying"];
    $Today=date("l F d,Y");
    ?>
    <html>
    <head>
    <title>请教</title>
    <link href="../images/outwin.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    今天的日期:
    <?php
      print("<h3>$Today</h3>\n");
      print("您好".$yourname.",您一共消费了");
      print($costofonebook*$numbersofdaysbuying);
      print("元。<br>\n");?>
    </body>