From cd7972d8260478140d67af9ba53bc2c63940dccc Mon Sep 17 00:00:00 2001 From: ThaaoBlues Date: Wed, 5 Nov 2025 20:01:12 +0100 Subject: [PATCH] fix : submit on enter --- connection.php | 2 ++ js/connection.js | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/connection.php b/connection.php index 195befb..6abd5f8 100644 --- a/connection.php +++ b/connection.php @@ -27,6 +27,8 @@ session_start();
+ +
diff --git a/js/connection.js b/js/connection.js index ec66f7b..ddcf4cc 100644 --- a/js/connection.js +++ b/js/connection.js @@ -27,4 +27,9 @@ function connection(){ .catch(error => { console.error('Error:', error); }); -} \ No newline at end of file +} + + +document.getElementById("submit-input").addEventListener("submit",(e)=>{ + connection(); +}); \ No newline at end of file