at least we know what you wanted to make.
First, you need to catch the posted variables from your form. You should use POST method in your program, change it like this:
<form method="post">
On the same page you then have to run a PHP code to build some kind of a string which will be ready to write into a flat file for example.
<?php
if(isset($_POST["submit"]))
{
$values= $_POST["field1"] . "|" . $_POST["field2"]."|".$_POST["field3"]."\n\r";
file_put_contents("textfile.txt" , $values , FILE_APPEND);
header("Location: index.php"); // to block page refresh
exit();
}
?>
Where field1... field3 is the input field's name properties. If you ready till this come back and the last step would be come to generate an output from this file.
If you want to make it a bit better, you can make it using a MYSQL database.