HTML Calendar -- Form

Form to access hcal

<SCRIPT> today = new Date() thisYear = today.getYear() thisMonth = today.getMonth() thisDate = today.getDate() if (thisYear < 100) thisYear += 1900 thisMonth++ </SCRIPT> <SPACER TYPE=vertical SIZE=15> <CENTER> <H2><FONT COLOR=black FACE=HELVETICA>HTML Calendar</FONT></H2> <FORM ACTION="http://your.machine/cgi-bin/hcal" METHOD=post> <TABLE CELLPADDING=2> <TR> <TD> <FONT FACE=HELVETICA SIZE=3><B>Month:</B> <SELECT NAME=month> <OPTION VALUE="0" selected=ON>All <OPTION VALUE="1">January <OPTION VALUE="2">February <OPTION VALUE="3">March <OPTION VALUE="4">April <OPTION VALUE="5">May <OPTION VALUE="6">June <OPTION VALUE="7">July <OPTION VALUE="8">August <OPTION VALUE="9">September <OPTION VALUE="10">October <OPTION VALUE="11">November <OPTION VALUE="12">December </SELECT> </FONT> <TD><FONT FACE=HELVETICA SIZE=3><B>Year:</B> <INPUT size=4 name=year></FONT> <TD><FONT FACE=HELVETICA SIZE=3><B>Date:</B> <INPUT size=2 name=date></FONT> <TD><FONT FACE=HELVETICA SIZE=3><B><INPUT TYPE=submit VALUE=" Show calendar "></B></FONT> </TABLE></FORM> <TABLE CELLPADDING=0> <TR> <TD><FORM ACTION="http://your.machine/cgi-bin/hcal" METHOD=post> <FONT FACE=HELVETICA SIZE=3><B> <SCRIPT> document.writeln("<INPUT TYPE=HIDDEN NAME=month VALUE=0>"); document.writeln("<INPUT TYPE=HIDDEN NAME=year VALUE=" + thisYear + ">"); </SCRIPT> <INPUT TYPE=submit VALUE=" This year's calendar "> </B></FONT></FORM> <TD><FORM ACTION="http://your.machine/cgi-bin/hcal" METHOD=post> <FONT FACE=HELVETICA SIZE=3><B> <SCRIPT> document.writeln("<INPUT TYPE=HIDDEN NAME=month VALUE=" + thisMonth + ">"); document.writeln("<INPUT TYPE=HIDDEN NAME=year VALUE=" + thisYear + ">"); </SCRIPT> <INPUT TYPE=submit VALUE=" This month's calendar "> </B></FONT></FORM> <TD><FORM ACTION="http://your.machine/cgi-bin/hcal" METHOD=post> <FONT FACE=HELVETICA SIZE=3><B> <SCRIPT> document.writeln("<INPUT TYPE=HIDDEN NAME=month VALUE=" + thisMonth + ">"); document.writeln("<INPUT TYPE=HIDDEN NAME=year VALUE=" + thisYear + ">"); document.writeln("<INPUT TYPE=HIDDEN NAME=date VALUE=" + thisDate + ">"); </SCRIPT> <INPUT TYPE=submit VALUE=" Today's date "> </B></FONT></FORM> </TABLE> </CENTER>

Note:


This page hosted by Get your own Free Home Page