Currently, I am utilizing Bootstrap within my HTML to develop a search page that will allow users to input a SQL query. Once the user enters their SQL query, it will be sent to a backend system that will execute the query in a database. The backend code is kept separate from the front-end code, which has made it challenging for me to figure out how to transfer the query text to the backend.
I am struggling with coming up with the right kind of function to handle this task. My idea is to create an onclick=function that would be responsible for sending the text to the backend. However, despite searching, I have not been able to find any packages or functions that specifically cater to this functionality. While AJAX appeared to be a potential solution, I did not find anything that fit my requirements precisely.