ho 2 form uno di nome metodo e uno ciccio
quando clicco il button per richiamare questa function
mi viene generato un errore di document.ciccio.email1 è nullo
ma nel mio codice html la casella c'è
<form name=ciccio >
<tr>
<td width='25%'>E-mail</td>
<td width='25%'><input name=email1 tabIndex=4>
</td><td width='50%' >
<input type='button' value='Richiesta Password' tabIndex=5 onclick=sendemail();>
</td>
</tr>
</form>
function sendemail(){
var email = document.ciccio.email1.value;
if ((email=='') || (email=='undefined')){
alert('il campo email è obbligatorio');
document.ciccio.email1.focus();
return false;
}
else{
document.email.action = 'action=areautente.asp?cmd=mail';
document.email.submit();
}
}
chi mi sa aiutare![]()
![]()
![]()
![]()