【发布时间】:2011-12-28 10:57:31
【问题描述】:
我在传递动态填充的数据时遇到问题。下面的代码动态显示餐厅的营业时间。现在我想将这段时间传递到新页面。
while ($start <= $end)
{
$startIn = strtotime('+0 minutes',$start);
$hourIn = ( date('h:ia', $startIn));
//dispaly restaurant availability
echo "<td id='td'>"."<a href='$resName.php' style='text-decoration: none;'>" . $hourIn ."</a>". "</td>";
$start = strtotime('+30 minutes',$startIn);
}
【问题讨论】:
-
你知道如何处理 GET/POST 数据吗?
-
是的,我可以将单个数据传递到另一个页面,但是我不知道如何在我的情况下使用它。
-
你听说过
$_SESSION吗? -
$_GET、$_POST 或 $_SESSION 任何全局变量都会为您服务
标签: php