<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html> <head>
<script language=javascript>
function controlla()
{error=0;
if(f.CODF.value=="")
{alert("Codice Film Obbligatorio");
error=1;}
if(f.TITOLO.value=="")
{alert("Titolo Obbligatorio");
error=1;}
if(f.CODREGISTA.value=="")
{alert("Inserire Nome Regista");
error=1;}
if(f.ANNO.value=="")
{alert("Inserire Anno");
error=1;}
if(f.SUPPORTO.value=="")
{alert("Inserire Tipologia Supporto");
error=1;}
if(f.CODLIST.value=="")
{alert("Inserire Codice di Listino");
error=1;}
if(f.CODGEN.value=="")
{alert("Inserire Codice Genere");
error=1;}
if(f.CENSURA.value=="")
{alert("Inserire Età di Censura");
error=1;}
if(f.PREZZO.value=="")
{alert("Inserire Prezzo");
error=1;}
if(f.NCOPIE.value=="")
{alert("Inserire Quantità Copie");
error=1;}
if(error==0)
f.submit(); }
</script>
</head>
<title>INSERIMENTO FILM </title>
<body class=body> <link href=stili.css type=text/css rel=stylesheet> <pclass=titolo>INSERIMENTO FILM</p>
<form name=f action=ins_film.php method=post>
<table class=table> <table border=2>
<tr><td>Codice</td><td><input type=text name=CODF></td></tr>
<tr><td>Titolo</td><td><input type=text name=TITOLO></td></tr>
<tr><td>Regista</td><td><input type=text name=CODREGISTA></td></tr> <tr><td>Anno</td><td><input type=text name=ANNO></td></tr> <tr><td>Supporto</td><td><input type=text name=SUPPORTO></td></tr> <tr><td>Codice Listino</td><td><input type=text name=CODLIST></td></tr> <tr><td>Codice Genere</td><td><input type=text name=CODGEN></td></tr> <tr><td>Censura</td><td><input type=text name=CENSURA></td></tr> <tr><td>Prezzo</td><td><input type=text name=PREZZO></td></tr>
<tr><td>Copie Disponibili</td><td><input type=text name=NCOPIE></td></tr>
<tr><td><input type="button" value="Invio" onclick=controlla()></td>
<td><input type="reset" value="Annulla"></td></tr>
</form>
</table>
</body> </html>