Try this.
Create a html file called submitpassword.html or something and add this form to it:
<form action=password.php method=POST>
Username: <input type=text name=name size=35><br>
Password: <input type=text name=pass size=35><br>
<br>
<input type="submit" value="Submit It!">
</form>
Then create a file called passworld.php and fill it with this:
<?php
$fp = fopen ("password.txt", "r");
$buffer = "";
while (!feof($fp)) {
$buffer = $buffer . fread($fp,4096);
}
fclose($fp);
$fp = fopen ("password.txt", "w");
$line = " Username " . $name . " Password " . $pass . " | ";
fwrite($fp,$line . $buffer);
fclose($fp);
?>
With this you will get something like:
Username chili Password tada |
Hope this helps 😉