Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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. Published under the terms of the Open Content License Design by Interspire