codice:dim X(9),Y(9) for i=0 to 8 X(i)=request.form("X" & (i+1) ) Y(i)=request.form("Y" & (i+1) ) next sql = "UPDATE layout set stato='true', UserID='"&ID&"' WHERE" for i = 0 to ubound(X) if len(trim(X(i)))>0 then if i>0 then sql=sql & " or" sql = sql & " (X=" & X(i) & " AND Y=" & Y(i) & ")" end if next response.write sql response.end