I have a email form page that uses the following routine to populate a dropdown box. I need to access either the current date or tomorrow's date in my routine that sends me a cdonts email. How can I access the selected or visible date? See <!-- w --><a class="postlink" href="http://www.emailfoodorder.com/emaildemoform2.asp">www.emailfoodorder.com/emaildemoform2.asp</a><!-- w -->
Thanks
<Td align="left">
<script language="JavaScript"><!--
var now = new Date();
now = new Date(now.getFullYear(),now.getMonth(),now.getDate(),0,0,0); // midnight
var text = '<form><select>';
for (i=0; i<2; i++) {
var theDay = new Date(now.getTime()+(i*24*60*60*1000));
text += '\n<option> ' + (theDay.getMonth()+1) + '/' + theDay.getDate() + '/' + theDay.getFullYear();
}
text += '</select></form>';
document.write(text);
//--></script>
</td>
Thanks
<Td align="left">
<script language="JavaScript"><!--
var now = new Date();
now = new Date(now.getFullYear(),now.getMonth(),now.getDate(),0,0,0); // midnight
var text = '<form><select>';
for (i=0; i<2; i++) {
var theDay = new Date(now.getTime()+(i*24*60*60*1000));
text += '\n<option> ' + (theDay.getMonth()+1) + '/' + theDay.getDate() + '/' + theDay.getFullYear();
}
text += '</select></form>';
document.write(text);
//--></script>
</td>