Código PHP:
<?PHP
if(file_exists('./m/' . $_GET['m'] . '.php'))
{
$m=$_GET['m'];
}
elseif(empty($_GET['m']) or $_GET['m']=='index')
{
$m='index';
}
else
{
$m='error';
}
?>
Código PHP:
index.php?m=vernoticia
Código PHP:
index.php?m=vernoticia?idNoticia=1
Código PHP:
index.php?m=vernoticia&idNoticia=1