
Originalmente inviato da
biccheddu
Codice PHP:
<?php
if (empty($_GET['page']) || $_GET['page'] == 'news')
{
include('news.php');
}
else
{
#scrivi quello che vuoi accada se una condizione non restituisce true
}
?>

ottimo, me se ci sono + condizioni... devo fare così?
Codice PHP:
<?php
if (empty($_GET['page']) || $_GET['page'] == 'news')
{
include('news.php');
}
if($_GET['menu'] == "staff")
{
include('staff.php');
}
if($_GET['menu'] == "xd")
{
include('xd.php');
}
else
{
include('news.php');
}
?>
Il problema è che se metto altre cose dopo la stringa staff, in tutte le pagine appaiono le news!!!