Intanto mi dà comunque i valori dei dati inseriti sulla barra dell'URL anche se ho messo method="POST" e poi non mi funziona e non riesco a capire perchè ...codice:<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script language="JavaScript"> <!-- function ControllaDati(form) { if ( (form.user.value == "") ) { alert("Attenzione! Devi inserire Username"); form.user.focus(); return false; }// if else if ( (form.password.value == "") ) { alert("Attenzione! Devi inserire Password"); form.password.focus(); return false; }// if }// else }// Controlla_Dati //--> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Gestione Report</title> </head> <body> <form action="" name="Classified" onSubmit="return ControllaDati(this)" method="POST"> User: <input type="text" name="user"> Password: <input type="password" name="password"> <input type="submit" value="Login"> </form> </body> </html>
Ciao e Grazie, Grejo.