Site Tools


webseite:html:form

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
webseite:html:form [2014/05/27 15:30] lunetikkwebseite:html:form [2017/11/29 17:01] lunetikk
Line 3: Line 3:
 ===== Basics ===== ===== Basics =====
  
-^Code^What it does^+ Code   Function  ^
 |  %%<form action="File.php" method="post"></form>%%  |  opens a form and closes it  | |  %%<form action="File.php" method="post"></form>%%  |  opens a form and closes it  |
 |  %%<input type="text" name="text" size="20">%%  |  displays a textfield  | |  %%<input type="text" name="text" size="20">%%  |  displays a textfield  |
-|  <code> +|  <code html
-   <select name="status"> +<select name="status"> 
-   <option selected value=""></option> +<option selected value=""></option> 
-   <option value="text1">text1</option> +<option value="text1">text1</option> 
-   <option value="text2">text2</option> +<option value="text2">text2</option> 
-   <option value="text3">text3</option> +<option value="text3">text3</option> 
-   </select></code>  |  displays a dropdown  |+</select></code>  |  displays a dropdown  | 
 +|  <input required type="password" size="20" name="passwort">  |  hides the input text  | 
 +|  <input type="radio" name="radiobutton" value="selectme">  |  radio buttons 
 +|  <input type="checkbox" name="chkbox" value="selectme">  |  checkbox 
 +|  <input type="submit" value="Buttontext">  |  submitbutton to send the input to a phpfile  |
  
 ===== Code example ===== ===== Code example =====
  
 +<code html form.html>
 +<form action="form.php" method="post">
  
 +Status:<br/>
  
 +<select name="status">
 +  <option selected value=""></option>
 +  <option value="1">1</option>
 +  <option value="2">2</option>
 +  <option value="3">3</option>
 +</select><br/><br/>
  
 +  Date(YYYY-MM-DD): <br/><input type="text" name="date" size="20"></br></br>
 +
 +  Time(HH:MM:SS): <br/><input type="text" name="time" size="20"></br></br>
  
 +  Place: <br/><input type="text" name="place" size="20"></br></br>
 +
 +  Text: <br/><input type="text" name="text" size="20"></br></br>
 +
 +  <input type="submit" value="send"><br/><br/>
 +</form>
 +</code>
 +
 +See [[webseite:php:form]] for the PHP
 +
 +\\
 +\\
 +~~DISCUSSION~~
webseite/html/form.txt · Last modified: 2018/12/20 17:45 by lunetikk