
April 7th, 2003, 10:28 AM
|
 |
Contributing User
|
|
Join Date: Feb 2003
Location: Buffalo, NY
Posts: 156
Time spent in forums: 10 h 59 m 53 sec
Reputation Power: 11
|
|
|
Passing URL date variables
I'm a PHP programmer, not ASP so this may be a very simple question:
I am trying to pass two variables to an ASP page so I can display a coresponding crystal report. The variables are start_date and end_date. Here is the code:
--== <index.html - Start> ==--
<form method="get" action="display.asp">
Date Range: From <input type="text" name="start_date" value="2/1/03"> To <input type="text" name="end_date" value="2/1/03"><br>
<input type="submit" value="Display"> <input type="reset" value="Reset">
</form>
--== <index.html - end> ==--
--== <display.asp - start> ==--
Set StartDate = request.QUERY_STRING("start_date")
Set EndDate = request.QUERY_STRING("end_date")
Session("oRpt").ParameterFields.GetItemByName("Start_Date").AddCurrentValue(CDate("StartDate"))
Session("oRpt").ParameterFields.GetItemByName("End_Date").AddCurrentValue(CDate("EndDate"))
--== <display.asp - end> ==--
I know so little about ASP that I can't even get it to display on the page to make sure the variables are being passed properly.
Any help would be appreciated!
__________________
Forget Milk!
Gotspy?
www.gotspy.com
|