ColdFusion Tutorial

Create A 'Submit' Button of Your Own Design

When you create a button for a Web form, you use the <INPUT> tag to specify the button's name, appearance, and what kind of data is contained.
You create a standard "Submit" button by specifying TYPE=SUBMIT in the <INPUT> tag. Similarly, you create a standard "Reset" button by indicating TYPE=RESET in another <INPUT> tag, as shown below:

<INPUT TYPE=SUBMIT VALUE="Upload Tutorial">

To use a custom image in place of the HTML-generated "Submit" button, you can use TYPE=IMAGE instead of TYPE=SUBMIT. Note that a VALUE attribute is not required here. You will also have to supply an SRC attribute to specify the image, and a NAME attribute to give the button a name:

<INPUT TYPE=IMAGE SRC="image/uppload.gif" NAME="upload_tutorial">

<INPUT TYPE="image" SRC="images/go_button.gif" HEIGHT="38" WIDTH="17" BORDER="0" ALT="Upload Tutorial">

Upload Tutorial


When a user clicks the image, the form will be submitted just as if a "Submit" button were pressed.


Notice: There's no way to replicate the TYPE=RESET function using TYPE=IMAGE to restore a form to its original state and erase any entered data.

ColdFusion Tutorial test

Create A 'Submit' Button of Your Own Design

No test is available or implemented for this ColdFusion Tutorial.

No User Comments.

No User Comments, be the first one to write your comments?

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
1Sc
Your IP Address: 38.103.63.62
 

ScandicWeb is own by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday