Alaska under the moon in the starry night
Statue of Liberty in Liberty Island in New York Harbor
USA stars Eye in the sky

Main (Home) page. USA 2017 .com "Lesson 18." - Forms: Submit buttons. Creat a button.


Somebody think about future. We make future today. USA2017.com. Peace, freedom, happiness for everyone in USA and everywhere on the Earth in 2017.

USA2017 :: "Lesson 18." - Forms: Submit buttons. Creat a button.

I searched all day along and finally found out all I need on USA2017.
/From the "Feedback collection on USA2017.com", USA2017.com./

HTML tutorial on USA 2017 Forms: Submit buttons. Creat a button. Lesson 18. We can create some buttons for a from using the <input> element. The <input> element has many variations, depending on the type attribute. Type type="submit" defines a submit button (for submitting the form). Click on submit button pass all information to a form-handler. The form-handler is typically a server page with a script for processing input data. The form-handler is specified in the form's action attribute. Type type="reset" defines a reset button (to return default values for the all elements of the form). The <button> element defines a simple clickable button.
First publication rights USA 2017 com



Forms: Submit buttons. Creat a button.

We can create some buttons for a from using the <input> element. The <input> element has many variations, depending on the type attribute.
  1. type="reset" - Type type="reset" defines a reset button (to return default values for the all elements of the form). Use attribute value to creat a sign on the button. If attribute value is omitted then we will see default sign: Reset.
  2. type="submit" - Type type="submit" defines a submit button (for submitting the form). Click on submit button pass all information to a form-handler. The form-handler is typically a server page with a script for processing input data. The form-handler is specified in the form's action attribute. In our example action="formdata.php" of tag <form>. Use attribute value to creat a sign on the button. If attribute value is omitted then we will see default sign: Submit.
  3. type="image" - Graphic button to submit information. Click on submit button pass all information to a form-handler. Attribute src="images/ibutton.png" required to set a filename of special file with button picture with a path to this file. If path or/and filename is wrong then we will see a button with a text in value attribute.
  4. type="button" - Simple button. We can set required function for this button using Javascript. We can use this button out of a form.
Two samples of simple buttons:

<button type="button" onclick="alert('You clicked the simple button created with button element')">Click Me!</button> -
<input type="button" onclick="alert('You clicked the simple button created with input tag')" value="Click Me!" /> -

Codes to set into the test page:
<form action="formdata_not_ready!.php" method="POST" name="form1">
<p><label>Name (max 32 chars): <input type="text" name="name1" size="32" maxlength="32" /></label></p>
<p><label>Password (max 6 chars): <input type="password" name="pas1" size="10" maxlength="6" /></label></p>

<p>Do you love America? ::::: 
<label>Yes<input type="radio" name="love_america" value="yes" checked="checked" /></label> ... or ... 
<label>No<input type="radio" name="love_america" value="no" /></label>
</p>

<p>What states of US do you like?</p>
<p>
<label><input type="checkbox" name="ny" value="" />New York</label>  &nbsp; &nbsp; &nbsp; 
<label><input type="checkbox" name="florida" value="" checked="checked" />Florida</label>  &nbsp; &nbsp; &nbsp; 
<label><input type="checkbox" name="texas" value="" />Texas</label>  &nbsp; &nbsp; &nbsp; 
</p>
<p>What states of US do you like (choice using select)?</p>
<p>
<select name="states_of_us" size="3" multiple="multiple">
	<option value="ny">New York</option>
	<option value="florida" selected="selected">Florida</option>
	<option value="texas">Texas</option>
</select>
</p>
<p><label for="message1">Please share your info about USA:</label></p>
<p><textarea name="message1" id="message1" cols="72" rows="8">USA is a  wonderful country everybody have to visit and to view by own eyes! 
But only if you have lots of money. The finance system in USA very unbending. 
The law is very strict. If out of a hundred payments he makes ninety-nine and does not have enough money to make the hundredth payment, the thing he is paying for will be taken away. For the vast majority, property is a fiction. Everything, even the bed on which this desperate optimist and enthusiastic defender of property sleeps, belongs not to him but to the industrial company or to the bank. It is enough for a man to lose his job, and the very next day he begins to understand clearly that he is no kind of proprietor at all...</textarea></p>

<p><input type="reset" name="reset" value="Reset..." /><input type="submit" name="submit" value="Submit!"/></p>
<p><input type="image" src="images/ibutton.png" name="imageButton" value="Graphic button" /></p>
<p><input type="button" name="button" value="Button. Just a button." /></p>
</form>

So we have placed mentioned above things on our test webpage:
article_018.html ← click to view, how it looks on this website...
article_018.zip ← download this webpage in zip archive to set on your website.

To visit more lessons use navigation bar below ↓,


More Info about "HTML and Internet basics" → ↓

"1&1" - one of the largest web hosts in the world.

Register with one of the largest web hosts in the world.

Our broad product portfolio of domains, website packages, web hosting packages and high-end server solutions gives you plenty of choice.

Click Here → ↓


Happy new searching to you!

What to do and where to go?

If you plan to come back later...
Please remember this page -
URL: http://usa2017.com/html/p018.html
Basket is empty

Love Me Do portal. Miss USA 2017.
"Love Me Do"

Keep pornography out & protect your family. Content watch :: Stop Internet Porno. Free computer scan.
Content watch :: Stop Internet Porno.

Adobe Macromedia.
Adobe Macromedia.

"Love Me Do" portal on USA 2017.
"Love Me Do" portal on USA 2017.

Hosting Observer.
Hosting Observer.

Music portal on USA2017.com
Music portal on USA2017.com

USA2017.com Attention! Thank you for visit! I wish you great success in present and future!
Pleeeeeeease, don't forget to vote for me in 2017! Thanks for your support.
© CopyRight(R), CopyLeft(L), CopyCat(C) 2017, President of USA. USA2017.com.
We make future today. Join us now! Peace, freedom, happiness, for everyone in USA and everywhere on the Earth in 2017.
Our very special thanks for support to: Team of the hosting company.
News from USA 2017. Sign up!
Close and hide in basket
Account Now. Free direct deposit. Visa card. 100% Approval. $25 Bonus when you set up direct deposit. Sign Up in 60 seconds.
Close and hide in basket
Butlers Bubbly Game. Snow and skiing - the perfect holiday! Until Billy the Butler gets a thirst for your bubbly! Stop Billy before he polishes off ALL the champagne 'Moet et chandon' and stand in line to win incredible prizes!
Close and hide in basket
eToro. While markets plummet... You profit.