Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/02/2002, 07:29
legolas
 
Fecha de Ingreso: agosto-2001
Mensajes: 399
Antigüedad: 23 años, 8 meses
Puntos: 0
Re: select anidados

Hola, te sirve esto que hice en alguna ocasión?

<%fecha=datevalue("02/10/2001")
for x = 1 to 31
%>
<option <%if x = day(fecha) then%>selected <%End If%>value="<% = x%>"><% = x%></option>
<%
next
%>
</select> <select name="mes" size="1">
<%for x = 1 to 12
%> <option <%if x = (month(fecha)+1) then%>selected <%End If%>value="<% = x%>"><% = Ucase(MonthName(x))%></option>
<%
next
%> </select><select name="anno" size="1">
<%for x = 2000 to 2050
%> <option <%if x = year(fecha) then%>selected <%End If%>value="<% = x%>"><% = x%></option>
<%
next
%>

Saludos ;)

El hombre es mortal por sus temores e inmortal por sus deseos. Pitágoras.