I didnt make this - todd
in the asp forum, but heres the input in blue and the part to insert into database in red. - i've got the input on one page - the insert on another.
<select name="month" class="gvff">
<%
FOR i = 1 to 12
j = " "
IF Month(Now) = i THEN
j = " selected "
END IF
%>
<option<%=j%>value="<%=i%>"><%=Left(MonthName(i),3)%></option>
<%
NEXT
%>
</select>
<select name="day" class="gvff">
<%
FOR i = 1 to 31
IF i > 3 AND i < 21 THEN
m = Trim(Cstr(i)) & "th"
ELSEIF i > 23 AND i < 31 THEN
m = Trim(Cstr(i)) & "th"
ELSEIF Right(Trim(Cstr(i)),1) = "2" THEN
m = Trim(Cstr(i)) & "nd"
ELSEIF Right(Trim(Cstr(i)),1) = "3" THEN
m = Trim(Cstr(i)) & "rd"
ELSEIF Right(Trim(Cstr(i)),1) = "1" THEN
m = Trim(Cstr(i)) & "st"
END IF
j = " "
IF Day(Now) = i THEN
j = " selected "
END IF
%>
<option<%=j%>value="<%=i%>"><%=m%></option>
<%
NEXT
%>
</select>
<select name="year" class="gvff">
<%
FOR i = 2000 to 2010
j = " "
IF Year(Now) = i THEN
j = " selected "
END IF
%>
<option<%=j%>value="<%=i%>"><%=i%></option>
<%
NEXT
%>
</select>
This is the sql to insert - after creating recordset - date part is in red.
strQuery = "INSERT INTO tblScores ([MissionID],
[date],[mission],[callsign],[kills],[death],
![[bomb] [bomb] [bomb]](/data/assets/smilies/bomb.gif)
,[score]) VALUES (" _
& MissionID & Session("MissionID"

& ", " _
& "#" & Request.Form("month"
& "/" & Request.Form("day"
& "/" & Request.Form("year"
& "#, " _
& "'" & Request.Form("Mission"

& "', " _
& "'" & callsign & "', " _
& kills & ", " _
& lived & ", " _
& bombed & ", " _
& total & "

"
'Response.Write strQuery & "<br>"
Conn.Execute strQuery "I like a man who grins when he fights."
-- Prime Minister Winston Churchill
Stuart