Add comments & Update URL Sceheme

This adds many comments to submit-sql.php file (previously restore.php), and renames the file, this is the start of this, and thus pulling from the SQL database is not yet supported. I also do not have checking for duplicates, but I feel like that could be done in-database. This is currently using a development SQLite database, and will eventually use postgresql. I need to find out a way to obscure credentials to PostgreSQL, maybe loading it from a ignored file, which would be git ignored? The SQL Implmentation is not production-ready, and also I need to figure out a better solution when switching from JSON TO SQL, as I plan to support both in this project. There needs to be alot of refactoring done in the submisson code, as this is just a *really* early draft.
This commit is contained in:
Evan G. 2024-06-09 15:39:05 -05:00
parent 683bca276e
commit 0ee662067d
2 changed files with 16 additions and 11 deletions

View file

@ -16,7 +16,7 @@
<a href="../index.html">Back Home</a>
</nav>
<main>
<form action="./restore.php" method="post">
<form action="./submit-sql.php" method="post">
<input type="text" name="fname" placeholder="name"></input>
<input type="text" name="fmessage" placeholder="Message"></input>
<input type="submit"></input>