<?
switch ($Fuseaction) {
case nyheter:
include (test.php);
break;
case produkter
include (test.php);
break;
default:
include (test.php);
}
?>
If the file with the code above is named main.php, and i then from index.php runs include (http://server/main.php?Fuseaction=nyheter); shouln't it then run the switch and use case nyheter..?
Has anyone made a "switchboard" like that.. or can someone explain it to me..? when I prog in CFML I always use this way, but not sure how to do it in php...??