<?
if(empty($_GET))
{
}
if($go=='test')
{
}
?>
хочу сделать ссылки типа сайт.ру/module.php?go=test
так нормально вообще? не хочется использовать switch
<?
if(empty($_GET))
{
}
if($go=='test')
{
}
?>
$act = $_GET["act"];
if(isset($_GET["act"])){
if($act=='one'){
print 'one';
}
if($act=='two'){
print 'two';
}
if($act=='three'){
print 'three';
}
}else{
print 'default';
}
$act = htmlspecialchars($_GET["act"]);
switch($act){
default:
print 'default';
break;
case 'one':
print 'one';
break;
case 'two':
print 'two';
break;
case 'three':
print 'three';
break;
}
$act = htmlspecialchars($_GET['act'])
switch($act)
switch($_GET["act"])
$act = @htmlspecialchars($_GET['act'])