User Tools

Site Tools


webseite:php:form

Table of Contents

Form

Basics

Code Function
$var = $_POST[“name”]; recieves a var submitted with post by a form

Code example

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>"
?>

See form for the HTML
See basic for the MySQL



webseite/php/form.txt · Last modified: 2018/12/20 17:45 by lunetikk