prova a mettere le modifiche in rosso...

if(isset($_POST['fn'])) {
switch ($_POST['fn']) {

case "INS":

$sql="INSERT INTO .....

echo "Inserimento OK";

unset($_POST['$fn']);

break;

}
}