Ho inserito questo script e tutto funziona correttamente, però non sono ancora soddisfatto.
<SCRIPT language=VBScript><!--
function FrontPage_Form1_onsubmit()
Set theForm = document.FrontPage_Form1
If (theForm.mailing.value = "") Then
MsgBox "Inserire un valore per il campo ""mailing"".", 0, "Validation Error"
theForm.mailing.focus()
FrontPage_Form1_onsubmit = False
Exit Function
End If
If (Len(theForm.mailing.value) < 6) Then
MsgBox "Inserire almeno 6 caratteri nel campo ""mailing"".", 0, "Validation Error"
theForm.mailing.focus()
FrontPage_Form1_onsubmit = False
Exit Function
End If
If (Len(theForm.mailing.value) > 60) Then
MsgBox "Inserire al massimo 60 caratteri nel campo ""mailing"".", 0, "Validation Error"
theForm.mailing.focus()
FrontPage_Form1_onsubmit = False
Exit Function
End If
FrontPage_Form1_onsubmit = True
End Function
--></SCRIPT>
E' possibile obbligare l'utente ad inserire il simbolo @ e il punto?
Ciao e grazie![]()

Rispondi quotando