我使用两页第一页从 url 获取值并显示一些内容。我在第二页中包含了第一页,但不应显示第一页,但我必须访问第一页中使用的第二页中的值。第一页的编码
first.php
在 utl 中,值作为 first.php?Logid=7773&shiftdate=2013-01-04&shiftid=146&pshift=1&tsid=1&dctype=timebased 传递
<?php
$Logid=$_GET['Logid'];
$ShiftDate=$_GET['shiftdate'];
$ShiftID=$_GET['shiftid'];
$PShift=$_GET['pshift'];
$TsID=$_GET['tsid'];
$DcType=$_GET['dctype'];
// below this some process is carried out
sec.php
<?php
ob_start();
include('first.php');
ob_end_clean();
echo $Logid;
echo $ShiftDate;
echo $ShiftID;
echo $PShift;
echo $TsID;
echo $DcType;
?>
该值未显示在第二页中。说我如何访问第二页中的值。请帮助我谢谢你!