Ciao a tutti,
sto utilizzando lo script di upload qui presente http://asp.html.it/articoli/leggi/695/upload-di-file/ e apparentemente funziona tutto tranne che non riesco a recuperare correttamente un campo data e due campi checkbox che dopo devo inserire i valori in un database.
' Recupero i campi se sono compilati
if instr(Intestazione,"data") > 0 then
data = ContenutoFile
end if
if instr(Intestazione,"titolo") > 0 then
titolo = ContenutoFile
end if
if instr(Intestazione,"stagione") > 0 then
stagione = ContenutoFile
end if
if instr(Intestazione,"home") > 0 then
home = ContenutoFile
If home = "si" Then
home = 1
Else
home = 0
End if
else
home = 0
end if
if instr(Intestazione,"estesa") > 0 then
estesa = ContenutoFile
If estesa = "si" Then
estesa = 1
Else
estesa = 0
End if
else
estesa = 0
end if
if instr(Intestazione,"testo") > 0 then
testo = ContenutoFile
end if
I campi home e estesa sono delle checkbox.
Qualcuno sa dirmi se devo recuperare tali dati in maniera diversa ?
Grazie per l'aiuto.
Romeo

Rispondi quotando