Codice PHP:
<?php
$action
=$_GET['action'];

if (
$action == false){
    
header("Location: switch.php");
} elseif(
$action == true) {
switch(
$action):
    case(
'cancella_riga'):
    
cancella_riga();
    break;
    case(
'cancella_riga_2'):
    
cancella_riga_2();
    break;
endswitch;

function 
cancella_riga(){
echo 
"funziona 1";
}
function 
cancella_riga_2(){
echo 
"funziona 2";
}

echo 
"<a href=\"switch.php?action=cancella_riga\">riga 1</a>";
echo 
"<a href=\"switch.php?action=cancella_riga_2\">riga 2</a>"


?>
spero di essere stato più chiaro