Take a look at my script:
let formData = new FormData(document.querySelector('#myForm'));
let request = new XMLHttpRequest();
request.open('POST', '/Handlers/account_handler.php', true);
request.send(formData); // I'm encountering a 500 Internal Server Error here and the MySQL table isn't getting updated
What could be causing this internal server error on the last line of code? Is there an issue with the logic or should I implement some logging to investigate further?