Ciao
Potresti usare anche uno SWITCH
Codice PHP:
SWITCH ($evento) {
CASE "evento1"
$stringa13="INSERT INTO c_agenda (titolo_evento) VALUES ('$titolo_evento'";
$rs_query13=mysql_query($stringa13);
$msg = "OK";
break;
CASE "evento2"
$stringa13="INSERT INTO c_agenda (titolo_evento) VALUES ('$titolo_evento'";
$rs_query13=mysql_query($stringa13);
$msg = "OK";
break
CASE "evento3"
$stringa13="INSERT INTO c_agenda (titolo_evento) VALUES ('$titolo_evento'";
$rs_query13=mysql_query($stringa13);
$msg = "OK";
break
DEFAULT
$msg = "ERRORE";
break
}
E' uguale, ma è più leggibile.
ciao
VVoVe: