Click to See Complete Forum and Search --> : Dropdown box with 2 dates in it


rosenzl
03-04-2003, 12:53 PM
I am trying to populate a dropdown box with 2 date variables called todaydate and tomdate. First it will show "-choose-", followed by todays's date and then tomorrow's date.

The selected date needs to be validated by my hidden function called Validate. This I can do, but I can't figure out the syntax for the dates. Following is another dropdown box which you can make the changes to so I can see the proper syntax.

____________________________________________________
<!--webbot bot="Validation" s-display-name="Choose" b-disallow-first-item="TRUE" --><Select Name="pudeliv">
<option name="--choose--" value="-choose-" <% if pudeliv = "-choose-" then response.write "selected" end if%>>-choose-</option>
<option name=Pickup" value="Pickup" <% if pudeliv = "pickup" then response.write "selected" end if %>>Pickup</option>
<option name="Delivery" value="Delivery" <% if pudeliv = "Delivery" then response.write "selected" end if %>>Delivery</option>
</select>
____________________________________________________



Thanks for your help.

Larry

pyro
03-04-2003, 01:46 PM
Looks like this should be posted in the ASP forums, rather than the javascript forums...