|
<BUTTON ...>TYPE = BUTTON | SUBMIT | RESETTYPEBUTTON (the default) creates a button in the same way
<INPUT TYPE=BUTTON>SUBMIT creates a submit button like <INPUT TYPE=SUBMIT>RESET creates a submit button like <INPUT TYPE=RESET>
<FORM ACTION="/cgi-bin/mycgi.pl" NAME="application">
application date: <INPUT TYPE=TEXT NAME="appdate" SIZE=10>
<BUTTON
TYPE=BUTTON
onClick="document.application.appdate.value=today()"><I>today</I></BUTTON><P>
<BUTTON TYPE=RESET><FONT COLOR=RED>Reset Form</FONT></BUTTON>
<BUTTON TYPE=SUBMIT><STRONG>Send It!</STRONG></BUTTON>
</FORM>
gives us this form (you can also see the today() script in this page):
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.