Ver Mensaje Individual
  #25 (permalink)  
Antiguo 05/06/2004, 12:06
Avatar de LeCLUB
LeCLUB
 
Fecha de Ingreso: abril-2003
Ubicación: Barcelona (España)
Mensajes: 205
Antigüedad: 22 años
Puntos: 1
Yo lo dejaría así:

Código PHP:
<%@LANGUAGE="VBSCRIPT"%>
<% 
fecha rs("canfecnacimiento")
If 
IsDate(fecha) = true Then
dia 
Cint(day(fecha))
mes Cint(month(fecha))
anio Cint(year(fecha))
End if
meses "Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agosto,Septiembre,Octubre,Noviembre,Diciembre"
matriz_mes split(meses",")
%> 
<
form name="forms" method="get">
<
select name="dia" id="dia">
<% For 
1 to 31 %>
<
option <% If dia i Then response.write ("selected"End if %> value="<%= i %>"><%= %></option>
<% 
Next %>
</
select>
<
select name="mes" id="mes">
<% For 
1 to 12 %>
<
option <% If mes i Then response.write ("selected"End if %> value="<%= i %>"><%= matriz_mes(i-1) %></option>
<% 
Next %>
</
select>
<
select name="ano" id="select">
<% For 
1950 to 1990 %>
<
option <% If anio i Then response.write ("selected"End if %> value="<%= i %>"><%= %></option>
<% 
Next %>
</
select>
</
form