So this is what I have so far on the PHP side
<?php
if (isset($_POST['submit']))
{
$name = $_POST['name'];
$file = fopen("names.txt", "a+");
fwrite($file,$name);
fclose($file);
$readFile = fopen("names.txt", "r");
fread($file);
}
?>
How would I display on my webpage what has been read from the file?