WEST SIDE CALI KILLERS


HOME OF WSCK CLAN
 
HomeCalendarFAQSearchMemberlistUsergroupsstoreRegisterLog in

Share | 
 

 (HTML) SUBMIT BUTTON

View previous topic View next topic Go down 
AuthorMessage
Duke Nukem
Moderator
Moderator
avatar

Country : USA
Posts : 174
Caps : 293
Times Thanked : 6
Browser : Internet Explorer

PostSubject: (HTML) SUBMIT BUTTON   Wed Jul 25, 2012 6:25 am

When a visitor clicks a submit button, the form is sent to the address specified in the action setting of the
tag.

Since visitors aren't always perfectionists you might consider adding a javascript validation of the content before it is actually sent.


Below is a listing of valid settings for submit buttons:

HTML

submit
name=
value=
align=
tabindex=

EXPLANATION

Submit button
Name of the button.
Text written on the button.
Alignment of the button.
Tab order of the button.


The name setting adds an internal name to the button so the program that handles the form doesn't confuse the button with the other fields.

The value setting defines what is written on the button.

The align setting defines how the button is aligned.
Valid entries are: TOP, MIDDLE, BOTTOM, RIGHT, LEFT, TEXTTOP, BASELINE, ABSMIDDLE, ABSBOTTOM.
The alignments are explained in the image section.
You can learn about the different alignments here.

The tabindex setting defines in which order the different fields should be activated when the visitor clicks the tab key.


Look at this HTML example:

Code:
<html>
<head>
<title>My Page</title>
</head>
<body>
<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="center">
<br><br>
<input type="text" size="25" value="Enter your name here!">
<br><input type="submit" value="Send me your name!"><br>
</div>
</form>
</body>
</html>
Back to top Go down
 

(HTML) SUBMIT BUTTON

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» No start fight button !?
» My reply from a long email I sent to OUR FRIENDS at GI
» 2011 OzFigurama Toy Awards - submit your display pictures!
» Does your belly button go in or out? xD
» Rate the player above you

Permissions in this forum:You cannot reply to topics in this forum
WEST SIDE CALI KILLERS :: Computer Related :: Coding :: HTML-