Here's a bit of context about my project:
I've tried using AJAX to send the data to a separate PHP file, but I would like to avoid making additional HTTP requests if possible. Is there a way to accomplish this without leaving the page?
Any help or guidance would be greatly appreciated. Thanks in advance!