Php 从其他页面中排除一个页面
我有一个关于如何在IF-php语句中将一个php页面从另一个页面中排除的问题。 这是我的代码:Php 从其他页面中排除一个页面,php,Php,我有一个关于如何在IF-php语句中将一个php页面从另一个页面中排除的问题。 这是我的代码: include 'category.php'; if(isset($_SESSION['ageSearch'])){ include 'age.php'; //exclude category.php here; } 有什么建议吗?谢谢 只需在else结构中包含category.php if(isset($_SESSION['ageSearch'])){
include 'category.php';
if(isset($_SESSION['ageSearch'])){
include 'age.php';
//exclude category.php here; }
有什么建议吗?谢谢 只需在
else
结构中包含category.php
if(isset($_SESSION['ageSearch'])){
include 'age.php';
}
else{
include 'category.php';
}
只需在
else
结构中包含category.php
if(isset($_SESSION['ageSearch'])){
include 'age.php';
}
else{
include 'category.php';
}
你为什么不那样做呢
if(isset($_SESSION['ageSearch'])){
include 'age.php';
}
else
{
include 'category.php';
}
你为什么不那样做呢
if(isset($_SESSION['ageSearch'])){
include 'age.php';
}
else
{
include 'category.php';
}
如果它真的有用,请将它标记为正确答案。干杯如果它真的有用,请将它标记为正确答案。干杯