home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
- <html>
- <head>
- <title>Un form</title>
- </head>
-
- <body>
-
- <%
- Dim strHobby
- Dim blnMusica
-
- blnMusica = false
- strHobby = request.form("chk_hobby")
-
- For Each hobby in request.form("chk_hobby")
- If hobby = "Musica" Then
- blnMusica = true
- End If
- Next
-
- response.cookies("txt_nome") = request.Form("txt_nome")
- response.cookies("txt_cognome") = request.Form("txt_cognome")
- response.cookies("rad_sesso") = request.Form("rad_sesso")
- response.cookies("sel_eta") = request.Form("sel_eta")
- response.cookies("chk_hobby") = request.Form("chk_hobby")
- response.cookies("txa_note") = request.Form("txa_note")
-
- %>
-
- <% if blnMusica = true Then %>
- <p>Caro <%=request.Form("txt_nome")%>, ho visto che ti interessi di musica. Ti dispiace indicarmi il nome del tuo cantante o gruppo preferito?</p>
- <form action="visdaticompleticookie2.asp" method="post">
-
- Cantante o gruppo preferito <input type="text" name="txt_cantante">
-
- <input type="submit" value="Invia">
-
- </form>
-
- <% else %>
-
-
- <p>Grazie per aver inviato i tuoi commenti, peccato non ti interessi di musica!</p>
-
- <% end if %>
-
- </body>
- </html>
-