event.preventDefault(); // Prevent the form from submitting normally
// Get form data
// Prepare data for AJAX or fetch request to send data to the server
// Replace 'process_form.php' with your server-side script URL
// Redirect to the thank you page
// Handle the error