codice:
<html>
       <head>
               <title>Prova moduli</title>
       </head>
       <body>
<script type="text/javascript">
function Modulo() {
var titolo = document.modulo.titolo.value;
var locandina = document.modulo.locandina.value;
if ((titolo == "") || (titolo == "undefined")) {
alert("Il campo Titolo è obbligatorio."");
document.modulo.titolo.focus();
return false;
}
else if ((locandina == "") || (locandina == "undefined") || (homepage.indexOf("http://") == (-1))) {
alert("Il campo locandina non può essere privo di http://";
document.modulo.locandina.value = "http://";
document.modulo.locandina.select();
return false;
}
else {
document.modulo.action = "pagina a cui lo devo reindirizzare";
document.modulo.submit();
}
}
</script>
               <table align="center" border="1">
                       <form method="post" name="modulo">
                               <tr>
                                       <td colspan="2" align="center">Modulo per release nella sezione film</td>
                               </tr>
                               <tr>
                                       <td>Titolo della release - Anno</td>
                                       <td><input type="text" name="titolo" size="100" /></td>
                               </tr>
                               <tr>
                                       <td>Locandina del film</td>
                                       <td><input type="text" name="locandina"size="100" /></td>
                               </tr>
                                       <tr>
                                               <td>Link</td>
                                               <td><textarea cols="63"></textarea></td>
                                       </tr>
                                       <tr>
                                               <td colspan="2" align="center"><input type="button" name="invia" value="Invia il modulo" onClick="Modulo ()"/></td>
                                       </tr>
                       </form>
               </table>
       </body>
</html>
Grazie, speriamo bene, lo so purtroppo è troppo restrittivo