in my asp page there i have given a option like select name and month & year
if records available it will dispaly otherwise there is a message ethat record not found.
records are dispalying perfectly.
but after selecting month & year it should display the month and year i have selected .
but its showing the default month and time.
for example.
i want to see the detail of xyz for the month of january 2005.
after selecting it dispalying december 2006 which i have set default as current month and year.

how to solve the problem please help me.

here is my code.
//

<%

set rs =server.createobject("ADODB.recordset")
set rs1=server.CreateObject("ADODB.recordset")
set rs2=server.CreateObject("ADODB.recordset")
ssql="select * from user_master"
eid=request.Form("selename")
m=request.form("dmonth1")
rs.open ssql,con,1,3

%>



<form name="convey_view" method="post" action="Disp_conveyance_voucher.asp">
<table width="%" border="0" cellspacing="0" cellpadding="0" align="center" class="table-border">
<tr>
<td width="31%" class="label" align="center">Select Month </td>
<td width="2%" class="colon">:</td>
<td width="67%"> <table>
<tr> <td width="195">
<%
m=month(date())
y=year(date())
icheck=""
ys=1945
ye=year(date)+1
response.Write("</select>")
response.Write("<select name=""dmonth1"" class=""text-box"">")
for i=1 to 12
if i=m then icheck="selected" else icheck=""
response.Write("<option value="&i&" "&icheck&">"&monthname(i)&"</option>")
next
response.Write("</select>")
response.Write("<select name=""dyear1"" class=""text-box"">")
for i=ys to ye
if i=y then icheck="selected" else icheck=""
response.Write("<option value="&i&" "&icheck&">"&i&"</option>")
next
response.Write("</select>")
%>
</td>
<td width="314"><input type="image" src="../../s_images/search.jpg" name="search" value="Search"></td>
</tr>
<tr> </table></td>

//

Thanks