Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 111   Yesterday: 1,329   Max: 1,872   Total: 485,019   Current Users : 17 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

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/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/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/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?



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.