case 'send': // imposto le variabili if ($prova == '' && !isset($_SESSION['riciclo'])) { $_SESSION['$back'] = 2; // a.capra MOD007 // imposto titolo e messaggio da post se prima volta, per volte successive lo imposto dalle variabili di sessione impostate al primo invio if (isset ($_POST['titolo'])) { $_SESSION['titolo'] = $_POST['titolo']; $_SESSION['titolos'] = $_POST['titolo']; // definisco la variabile di sessione x il titolo delle newsletter e la imposto $_SESSION['nwslttrinvt'] = 0; // definisco la variabile di sessione delle newsletter inviate = 0 al primo invio } else { $_SESSION['titolo'] = $_SESSION['titolos']; } if (isset ($_POST['messaggiomail'])) { $_SESSION['messaggiomail'] = $_POST['messaggiomail']; $_SESSION['messaggiomails'] = $_POST['messaggiomail']; // definisco la variabile di sessione x il testo delle newsletter inviate e la imposto } else { $_SESSION['messaggiomail'] = $_SESSION['messaggiomails']; } // inizio a.capra MOD007 if(!isset($_FILES['attachment'])) { // a.capra 20/08/2008 $_SESSION['attachment1']= ""; // a.capra 20/08/2008 $_SESSION['attachment2']= ""; // a.capra 20/08/2008 $_SESSION['attachment3']= ""; // a.capra 20/08/2008 $_SESSION['attachment4']= ""; // a.capra 20/08/2008 } // a.capra 20/08/2008 else // a.capra 20/08/2008 { // a.capra 20/08/2008 $_SESSION['attachment1']=$_FILES['attachment']['name']; // a.capra 20/08/2008 $_SESSION['attachment2']=$_FILES['attachment']['type']; // a.capra 20/08/2008 $_SESSION['attachment3']=$_FILES['attachment']['size']; // a.capra 20/08/2008 $_SESSION['attachment4']=$_FILES['attachment']['tmp_name']; // a.capra 20/08/2008 } // a.capra 20/08/2008 if (!isset ($_POST['allegato'])) { // a.capra 20/08/2008 $_SESSION['allegat'] = ""; // a.capra 20/08/2008 } // a.capra 20/08/2008 else // a.capra 20/08/2008 { // a.capra 20/08/2008 $_SESSION['allegato']=$_POST['allegato']; // a.capra 20/08/2008 } // a.capra 20/08/2008 // fine codice x allegati a.capra MOD007 echo '