// const userEmail = "";
// const userName = "";
// .then(response => response.text())
// .then(data => {
// document.getElementById('response').innerHTML = data;
// });
// When the button is clicked
// Get the value of the input field
// alert(name + ' for ' + email);
// Send an AJAX POST request
url: 'pdf/examples/consentformemail.php', // The PHP file to send the request to
type: 'POST', // Use POST method
data: { // Send data as key-value pairs
// Display the response in the #result div
// alert('The consent form has been sent successfully.');
// alert(errorMessage);
// $('#error').html(
// 'Error ' + errorMessage
// );