Ho seguito passo passo le tue istruzioni ma il risultato è questo

codice:
session_start(); class OptionMenu { protected $conn; protected $page; public function __construct() { $this->page = basename($_SERVER['PHP_SELF']); $this->DbConnectAndSelect(); $this->ParsingAction(); } protected function DbConnectAndSelect() { include "db_config.php"; $this->conn = @mysql_connect($host,$username,$password) OR die("Impossibile connettersi al server"); @mysql_select_db($db, $this->conn) OR die("Impossibile selezionare il database"); } public function JsHeader() { echo ' '; } public function ShowRegioni() { if(isset($_SESSION['regione'])) { $regione = $_SESSION['regione']; } else { $regione = "Seleziona una regione"; } $sql = "SELECT id,regione FROM cgil_regioni"; $res = mysql_query($sql, $this->conn); echo '
 ' . $regione . ' '; while($row = mysql_fetch_array($res)) { if($row['regione'] != $regione) { echo '' . $row['regione'] . ' '; } } echo ' 
'; } public function ShowProvince() { if(isset($_SESSION['provincia'])) { $provincia = $_SESSION['provincia']; } else { $provincia = 'Seleziona una provincia'; } echo '
 ' . $provincia . ' '; if($regione = $this->SelectProvincia()) { $sql = "SELECT id,provincia FROM cgil_province WHERE id_regione='$regione'"; $res = mysql_query($sql, $this->conn); while($row = mysql_fetch_array($res)) { if($row['provincia'] != $provincia) { echo '' . $row['provincia'] . ' '; } } } echo ' 
'; } public function ShowComuni() { if(isset($_SESSION['comune'])) { $comune = $_SESSION['comune']; } else { $comune = 'Seleziona un comune'; } echo '
 ' . $comune . ' '; if($_GET['id_provincia']) { $sql = "SELECT id,comune FROM cgil_comuni WHERE id_provincia='$_GET[id_provincia]'"; $res = mysql_query($sql, $this->conn); while($row = mysql_fetch_array($res)) { echo '' . $row['comune'] . ' '; } } echo ' 
'; } protected function SelectProvincia() { if(!$_GET['id_regione'] AND !$_SESSION['regione']) { return FALSE; } else { if($_GET['id_regione']) { return $_GET['id_regione']; } else { $sql = "SELECT id FROM cgil_regioni WHERE regione='$_SESSION[regione]'"; $res = mysql_query($sql, $this->conn); $row = mysql_fetch_array($res); return $row['id']; } } } protected function ParsingAction() { if(isset($_GET['action'])) { if($_GET['action'] == 'provincia') { $_SESSION['regione'] = $_GET['regione']; unset($_SESSION['provincia']); unset($_SESSION['comune']); } if($_GET['action'] == 'comune') { $_SESSION['provincia'] = $_GET['provincia']; unset($_SESSION['comune']); } if($_GET['action'] == 'end') { $_SESSION['comune'] = $_GET['comune']; header("Location: result.php"); die; } } } } 
Fatal error: Cannot instantiate non-existent class: optionmenu in /web/htdocs/www.xxxxxxxxx.it/xxxx/xxxx/xxxx/index_prova.php on line 12