Site Tools


webseite:php: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
webseite:php:form [2014/05/27 15:41] lunetikkwebseite:php:form [2018/12/20 17:45] (current) – Discussion status changed lunetikk
Line 3: Line 3:
 ===== Basics ===== ===== Basics =====
  
-^Code^What it does^+ Code   Function  ^
 |  $var = $_POST["name"]; |  recieves a var submitted with post by a form  | |  $var = $_POST["name"]; |  recieves a var submitted with post by a form  |
  
Line 9: Line 9:
 ===== Code example ===== ===== Code example =====
  
-<code>+<code php form.php> 
 +<?php 
 +$status = $_POST["status"]; 
 +$date = $_POST["date"]; 
 +$time = $_POST["time"]; 
 +$place = $_POST["place"]; 
 +$text = $_POST["text"];
  
 +echo "<table border=1><thead><tr><th>Status</th><th>Date</th><th>Time</th><th>Place</th><th>Text</th></tr></thead><tbody>";
 +echo '<tr>'; 
 +echo '<td>';
 +echo $status;
 +echo '</td>';
 +echo '<td>';
 +echo $date;
 +echo '</td>';
 +echo '<td>';
 +echo $time;
 +echo '</td>';
 +echo '<td>';
 +echo $place;
 +echo '</td>';
 +echo '<td>';
 +echo $text;
 +echo '</td>';
 +echo '</tr>'; 
 +echo "</tbody></table>"
 +?>
 </code> </code>
  
-See [[webseite:html:form]] for the HTML +See [[webseite:html:form]] for the HTML \\ 
-See [[webseite:mysql]] for the MySQL +See [[webseite:mysql:basic]] for the MySQL
  
 +\\
 +\\
 +~~DISCUSSION:closed~~
webseite/php/form.1401198100.txt.gz · Last modified: 2017/03/01 12:50 (external edit)