This feels pretty beginner question, but I’m trying to log a form upload and I really can’t get php code to fix it.
This is essentially my submission HTML form
<form method="post" action="./Registrator.php" id="register">
Username: <input type="text" name="username" id="username" size="25" value="" title="Username" />
<fieldset class="submit-buttons">
<input type="reset" value="Reset" name="reset" />
<input type="submit" value="Submit" name="submit" />
</fieldset>
</form>
But seriously, what php do I need in Registrator.php to simply write the entry to a log file log.txt, a new line at a time?
I’ve been looking for hours online, I must be idiotic, but this is getting silly, so I ask for your help.
Thanks for reading and for any help you have to offer.