Site Tools


webseite:php:form

Differences

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

Link to this comparison view

Next revision
Previous revision
webseite:php:form [2014/05/27 13:06] – created lunetikkwebseite:php:form [2018/12/20 17:45] (current) – Discussion status changed lunetikk
Line 1: Line 1:
-form+====== Form ====== 
 + 
 +===== Basics ===== 
 + 
 +^  Code  ^  Function 
 +|  $var = $_POST["name"]; |  recieves a var submitted with post by a form  | 
 + 
 + 
 +===== Code example ===== 
 + 
 +<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> 
 + 
 +See [[webseite:html:form]] for the HTML \\ 
 +See [[webseite:mysql:basic]] for the MySQL 
 + 
 +\\ 
 +\\ 
 +~~DISCUSSION:closed~~
webseite/php/form.1401188764.txt.gz · Last modified: 2017/03/01 12:50 (external edit)