Hi,
I want the user to be able to select from 2 dates, today's date and yesterdays date from a dropdown box. Based on what the user chooses, that date is sent to the next page which will request this date to use to query a table. I can't seem to pass it on. I'm pretty new to ASP so please bear with me.
1st page dropdown box:
2nd page (rpt_Status.asp)
rpt_Status.asp needs to know which date was selected so that it can convert it to verified_dt and go through the other conversions. So basically, how can I make it so dt = <%=date()%> or <%=date()-1%> as selected from the dropdown box?
Thanks in advance.
I want the user to be able to select from 2 dates, today's date and yesterdays date from a dropdown box. Based on what the user chooses, that date is sent to the next page which will request this date to use to query a table. I can't seem to pass it on. I'm pretty new to ASP so please bear with me.
1st page dropdown box:
Code:
<table class="data">
<form name="Center" action="rpt_Status.asp" method=post>
<tr>
<td><b>Date</td>
<td><select style="font-size:10 name=dt>
<option value= "0"></option>
<option value="<%=date()-1%>"><%=date()-1%></option>
<option value="<%=date()%>"><%=date()%></option>
</select>
</td>
</tr>
</table>
<br>
<input type="submit" name="submit" value="Submit">
</form>
2nd page (rpt_Status.asp)
Code:
Dim verified_dt
Dim verified_mth
Dim verified_day
Dim verified_yr
verified_dt = Request.Form("dt")
verified_mth = Month(CDate(verified_dt))
verified_day = Day(CDate(verified_dt))
verified_yr = year(CDate(verified_dt))
rpt_Status.asp needs to know which date was selected so that it can convert it to verified_dt and go through the other conversions. So basically, how can I make it so dt = <%=date()%> or <%=date()-1%> as selected from the dropdown box?
Thanks in advance.
