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 "Lesson 12." - Forms: basics, tag <form>.


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

USA2017 :: "Lesson 12." - Forms: basics, tag <form>.

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

HTML tutorial on USA 2017 Forms: basics, tag <form>. Lesson 12. When a website visitor input information in fields of a form and clicks "Submit" button this information go to a server to a form-handler. In our sample form-handler is server script formdata.php. Studying server scripts is out of the HTML tutorial. But in this case HTML comes very close to server part of coding so we will get a little touch of PHP programming. Please note: PHP is server language.
First publication rights USA 2017 com



Forms: basics, tag <form>.

When a website visitor input information in fields of a form and clicks "Submit" button this information go to a server to a form-handler.
Contacts Form on file *.html
When a website visitor input information in fields of a form and clicks "Submit" button this information go to a server to a form-handler.

In our sample form-handler is server script formdata.php.

There are many different methods to set up server script formdata.php. We can make script to save information into DB or/and into special text files. Also we can to send input information to email of website owner.

To set up a form we must use element <form></form>, with following attributes:
  1. action="formdata.php" - the form-handler is specified in the form's action attribute, in our case server script formdata.php.
  2. method="POST" - The method attribute specifies the HTTP method: GET(default) or POST to be used when submitting the forms. Use GET if the form submission is passive (like a search engine query), and without sensitive information. When you use GET, the form data will be visible in the page address. You should use POST if the form is updating data, or includes sensitive information (password). POST offers better security because the submitted data is not visible in the page address.
  3. name="form1" - to be submitted correctly, each input field must have a name attribute. Also a form must have a name attribute to avoid mixture with other forms on the current webpage.


Codes to set into the test page:
<form action="formdata_not_ready!.php" method="POST" name="form1">
<div style="width:420px;">
<img src="images/roosevelt.jpg" width="60" height="60" class="" style="width:60px; height:60px; float:right;" alt="Franklin D. Roosevelt, president of USA in 1935." title="Franklin D. Roosevelt, president of USA in 1935." />
<p><label>Name: <input type="text" name="name1" size="32" maxlength="32" value="Franklin D. Roosevelt" /></label></p>
<p><label>eMail: <input type="text" name="email1" size="32" maxlength="32" value="Roosevelt@usa2017.inumo.ru" /></label></p>
</div>
<p>
<label for="text">Message:</label><br />
<textarea name="text" id="text" cols="64" rows="8">
Dear misters Ilya Ilf and Eugene Petrov!
Welcome to America!
I thinks you're the best journalists over the world.
I believe your visit will open America for Russians and, maybe, also for Americans.
Good Luck!
President of USA (1932-1944),
Franklin D. Roosevelt
</textarea>
</p>
<p style="text-align:center;">
<input type="reset" name="reset" value="Reset..." /><input type="submit" name="submit" value="Submit!"/>
</p>
</form>

So we have placed mentioned above things on our test webpage:
article_012.html ← click to view, how it looks on this website...
article_012.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: https://usa2017.inumo.ru/html/p012.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.INUMO.RU
Music portal on USA2017.INUMO.RU

USA2017.INUMO.RU 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.INUMO.RU.
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.