sotto al tasto invio mi scrive -campo cognome obbligatorio -campo cognome obbligatorio ecc...
![]()
![]()
<input name="invia" type="submit" id="invia" value="Invia">
<%
errore=""
if trim(request.form("cognome"))="" then
errore=errore&"-campo cognome obbligatorio"
end if
if trim(request.form("nome"))="" then
errore=errore&"-campo nome obbligatorio"
end if
if trim(request.form("cognome"))="" then
errore=errore&"-campo cognome obbligatorio"
end if
if trim(request.form("via"))="" then
errore=errore&"-campo via obbligatorio"
end if
if trim(request.form("civico"))="" then
errore=errore&"-campo civico obbligatorio"
end if
if trim(request.form("cap"))="" then
errore=errore&"-campo cap obbligatorio"
end if
if trim(request.form("città"))="" then
errore=errore&"-campo città obbligatorio"
end if
if trim(request.form("provincia"))="" then
errore=errore&"-campo provincia obbligatorio"
end if
if trim(request.form("telCasa"))="" then
errore=errore&"-campo telefono casa obbligatorio"
end if
if trim(request.form("email"))="" then
errore=errore&"-campo e-mail obbligatorio"
end if
if errore<>"" then
response.write errore
response.end
else
response.Write(ok)
response.End()
end if
%>

Rispondi quotando