hola compañero
mira... depure mi codigo y lo compare con el tuyo en la parte que formas el select eliminando las opciones, y me di cuenta que hacia falta un
TEMP=0 Código PHP:
<%
response.Write "<select id=libres>"
for i=0 to ubound(vh)
for j=0 to ubound(h_ocupadas)
if h_ocupadas(j)<>vh(i) then
temp=temp+1
else
j=ubound(h_ocupadas)+1
end if
if temp=ubound(h_ocupadas) then
response.Write "<option value="&i&">"&vh(i)&"</option>"
temp=0
end if
next
temp=0 <<<<<<<----------- ESTA LINEA FALTABA
next
response.Write "</select>"
agrege esa linea en el FOR, y ya no repite horas.....
espero que pueda quedar... sino... aki estamos
suerte