想取值sum1,sum2,sum3....并相加得出总数
我写了这个,但不知错在哪,想取值sum1,sum2,sum3....并相加得出总数Dim i,Hdk
Hdk=0
For i=1 To 21
Dim Hsaa&i : Hsaa&i=Easp.Post("sum&i:n")
if Hsaa&i="" Then
Hsaa&i=0
Hdk=Hdk+Hsaa&i
end if
Next
Easp.WC Hdk
Dim i,s,t,sum Redim t(10) For i = 0 to 10 t(i) = i'request.Form("sum"&i) response.Write t(i) sum = sum + t(i) Next response.Write sum