<%@LANGUAGE = VBScript%> <% Dim invio, nome, cognome, indirizzo, telefono invio = Request.Form("invio") nome = Request.Form("nome") cognome = Request.Form("cognome") indirizzo = Request.Form("indirizzo") telefono = Request.Form("telefono") Dim messaggio, errore errore = 0 messaggio = "Campo obbligatorio!" %> Documento senza titolo Controllo integrato in un form con ASP ed i cookies

Nome <% If invio <> "" And nome = "" Then Response.Write messaggio errore = errore + 1 End If %>

Cognome <% If invio <> "" And cognome = "" Then Response.Write messaggio errore = errore + 1 End If %>

Indirizzo <% If invio <> "" And indirizzo = "" Then Response.Write messaggio errore = errore + 1 End If %>

Telefono <% If invio <> "" And telefono = "" Then Response.Write messaggio errore = errore + 1 End If %>

<% If invio <> "" And errore = 0 Then With Response .Write "

E' solo un esempio!

" .Write "

" .Write "Nome: " & nome & "
" .Write "Cognome: " & cognome & "
" .Write "Indirizzo: " & indirizzo & "
" .Write "Telefono: " & telefono .Write "

" End With End If %>