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
Next revisionBoth sides next revision
webseite:php:form [2014/05/27 15:41] lunetikkwebseite:php:form [2015/06/15 15:43] 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~~
webseite/php/form.txt · Last modified: 2018/12/20 17:45 by lunetikk