用year(datetime),month(datetime),day(datetime)分别取到年,月,日,存放到下拉列表中
那写入数据库时就直接request(”time“)的值就可以了,是吗?
你看这个对吗 <select name="year" id="select"> <% for i=1996 to 2010 response.write "<option value="&i if year(rsUser("csrq"))=i then response.write " selected " response.write ">"&i&"</option>" next %></select>