AgerNic.com/ro
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
Tutorial

Defini?ie ?i utilizare HTML Forms.
Formulare HTML sunt necesare atunci cānd dori?i s? colecta?i unele date de la vizitatorul site-ului. De exemplu, īn timpul īnregistr?rii utilizatorilor, dori?i s? colecta?i informa?ii precum numele, adresa de e-mail, cardul de credit etc.

Un formular va prelua de la vizitatorul site-ului ?i apoi īl va posta īntr-o aplica?ie de tip back-end, cum ar fi scriptul CGI, ASP Script sau PHP etc. Aplica?ia de baz? va efectua procesarea necesar? pe datele trecute pe baza logicii de afaceri definite din interior aplica?ia.

Exist? diferite elemente de form? disponibile, cum ar fi cāmpurile de text, cāmpurile de textare, meniurile derulante, butoanele radio, casetele de selectare etc.

Eticheta HTML <form> este utilizat? pentru a crea un formular HTML ?i are urm?toarea sintax? -
<form action = "Script URL" method = "GET|POST">
form elements like input, textarea etc.
</form>

Exemplu:

<!DOCTYPE html>
<html> 
  <head> 
     <title>Defini?ie ?i utilizare HTML Forms</title>
  </head>
<body>
<h1>Defini?ie ?i utilizare HTML Forms</h1>
<h2 style="background-color:yellow; color:#0099FF; font-style:italic; font-size:26px"> Va rugam sa completati urmatorul formular pentru creare cont</h2>
<form >
Numele: <input type = "text" name = "first_name" /> <br>
Prenume: <input type = "text" name = "last_name" /> <br>
Password: <input type = "password" name = "password" /><br>
<input type = "checkbox" name = "maths" value = "on"> Maths<br>
<input type = "checkbox" name = "physics" value = "on"> Physics <br>
<input type = "submit" name = "submit" value = "Submit" />
<input type = "reset" name = "reset" value = "Reset" />
<input type = "button" name = "ok" value = "OK" />
<input type = "image" name = "imagebutton" src = "https://www.agernic.com/ro/images/submit.jpg" />
</form>
</body> </html>
Tags: HTML form, formular, action, post, checkbox, exemple

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


analytics piwika