Kod
function potwierdzFormularz(haslo_md5,haslo_sha1) {
var komunikat = prompt("Podaj swoje aktualne hasło:","");
while(calcMD5(komunikat)!=haslo_md5 || calcSHA1(komunikat)!=haslo_sha1)
{
komunikat = prompt("Podaj swoje aktualne hasło:","");
}
if(calcMD5(komunikat)==haslo_md5 && calcSHA1(komunikat)==haslo_sha1)
{
document.formularz.submit();
}
}
var komunikat = prompt("Podaj swoje aktualne hasło:","");
while(calcMD5(komunikat)!=haslo_md5 || calcSHA1(komunikat)!=haslo_sha1)
{
komunikat = prompt("Podaj swoje aktualne hasło:","");
}
if(calcMD5(komunikat)==haslo_md5 && calcSHA1(komunikat)==haslo_sha1)
{
document.formularz.submit();
}
}
Cała funkcja działa, ale nie wiem jak wywołać funkcję submit dla tego formularza, bo ta, która jest w kodzie, niestety nie dziala. Jakieś pomysły?