Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Forms > <INPUT ...> > TYPE

TYPE = SUBMIT

SUBMIT creates the "Submit" button which sends the form in to the CGI. In its simplest form, you can use SUBMIT and no other attributes for the <INPUT ...> tag:

this code produces this
<FORM ACTION="../cgi-bin/html/mycgi.pl">
name: <INPUT NAME="realname"><BR>
email: <INPUT NAME="email"><P>
<INPUT TYPE=SUBMIT>
</FORM>
name:
email:

You can customize the text used for the button using the VALUE attribute:

this code produces this
<FORM ACTION="../cgi-bin/html/mycgi.pl">
name: <INPUT NAME="realname"><BR>
email: <INPUT NAME="email"><P>
<INPUT TYPE=SUBMIT VALUE="Send It!">
</FORM>
name:
email:

You may sometimes find that you want to have more than one submit button on a form. If you give each button the same name, but different values, the browser will indicate which submit button was pressed:

<FORM ACTION="../cgi-bin/html/mycgi.pl">
Go to the check-out page? 
<INPUT TYPE=SUBMIT NAME="checkout" VALUE="YES"> 
<INPUT TYPE=SUBMIT NAME="checkout" VALUE="NO"> 
</FORM>

which gives us

Go to the check-out page?

TYPE=RESET >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com