
<?php
$file = $_POST["user"];
$current = file_get_contents($file);
$current .= "John Smith\n";
file_put_contents($file, $current);
?>
$file = $_POST["user"];
$current = file_get_contents($file);
$current .= "John Smith\n";
file_put_contents($file, $current);
?>