From cbceff17495d2487ea7e2a51878bd2d5b316e49e Mon Sep 17 00:00:00 2001 From: Grim0o5 Date: Mon, 13 Jan 2025 07:30:30 +0545 Subject: [PATCH] feedback enabled with data going to database --- contactus.php | 4 ++-- uploadfeedback.php | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 uploadfeedback.php diff --git a/contactus.php b/contactus.php index 7540133..fb3384f 100644 --- a/contactus.php +++ b/contactus.php @@ -16,7 +16,7 @@

Please provide the feedback about your problem

-
+
- +
diff --git a/uploadfeedback.php b/uploadfeedback.php new file mode 100644 index 0000000..038de0b --- /dev/null +++ b/uploadfeedback.php @@ -0,0 +1,34 @@ +prepare( + "INSERT INTO feedback (user_id,name,email,feedback) + VALUES (?, ?, ?, ?)" + ); + $stmt->bind_param( + "isss", + $user_id, + $username, + $email, + $feedback + + ); + $stmt -> execute(); + echo ""; + exit; +} + +?> \ No newline at end of file