How to print all POST results when a form is submitted.

Written by Leif Stenfeldt. Posted in PHP, Programmering

<?php print_r($_POST); ?> 
<table>
<?php 
    foreach ($_POST as $key => $value) {
        echo "<tr>";
        echo "<td>";
        echo $key;
        echo "</td>";
        echo "<td>";
        echo $value;
        echo "</td>";
        echo "</tr>";
    }
?>
</table>
1485 views

Leave a comment