
Information
The Basics
Text
Pictures
Spacing
Colors
Links
Alignment
Lists/Bullets
Tables
Frames
Multimedia
Forms
ISO Characters
Meta Tags
Contact Us

Email Support
Email Contact
|
 |
 |
Introduction
The submit button is a major part of all forms. It is the button that when clicked, will send all of the information to the
CGI script to be processed. This section explains how to add the submit button.
Submit Button
The tag to add a submit button is <INPUT TYPE="submit">. This will submit all the fields that are in that form
to the CGI script to be processed.
|
index.html - Notepad |
....<BODY>
<FORM METHOD="POST" ACTION="script.cgi">
<INPUT TYPE="text"> <BR>
<INPUT TYPE="text"> <BR>
<INPUT TYPE="submit">
</FORM>
</BODY>....
|
|
|
My Homepage - Microsoft Internet Explorer |
|
|
Initial Value
Without specifying anything, the submit button has a default value of "Submit Query". However, you are able to change this by adding
the line VALUE="X" to the tag <INPUT TYPE="submit"> so the final result is <INPUT TYPE="submit" VALUE="X">. X is
replaced with the initial value.
|
index.html - Notepad |
....<BODY>
<FORM METHOD="POST" ACTION="script.cgi">
<INPUT TYPE="text"> <BR>
<INPUT TYPE="text"> <BR>
<INPUT TYPE="submit" VALUE="Click To Send">
</FORM>
</BODY>....
|
|
|
My Homepage - Microsoft Internet Explorer |
|
|
Image Submit Button
One of the neatest things you can do with the submit button is use your own image instead of the default gray box. To
do this, use the tag <INPUT TYPE="image" SRC="url">. URL is replaced with the internet address of the picture
you want to use.
|
index.html - Notepad |
....<BODY>
<FORM METHOD="POST" ACTION="script.cgi">
<INPUT TYPE="text"> <BR>
<INPUT TYPE="text"> <BR>
<INPUT TYPE="image" SRC="submit.gif">
</FORM>
</BODY>....
|
|
|
My Homepage - Microsoft Internet Explorer |
|
|
Test Your HTML
|
|