X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=516089e056816089995fced1e48f4219dea7626b;hb=5b70780eb304ed68645d48f06f65034499d7a515;hp=16a01ec0fc051c7a87a63c42fd45a12b536bca81;hpb=d4adeb654507e6cd75aac3f264ae21ed5d16bfab;p=dylansserver.git
diff --git a/index.php b/index.php
index 16a01ec..516089e 100644
--- a/index.php
+++ b/index.php
@@ -340,7 +340,14 @@ class note extends cms {
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
echo "The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")";
- }
+ } else {
+ $sql = ("INSERT INTO comments (date_posted, author,
+ email, text, note
+ VALUES(NOW(), ?, ?, ?, ?, ?");
+ echo htmlspecialchars($_POST['author']);
+ echo htmlspecialchars($_POST['email']);
+ echo htmlspecialchars($_POST['text']);
+ }
}
private function display_note() {
@@ -365,12 +372,14 @@ class note extends cms {
}
private function write_navigation() {
- echo "
";
- echo "