Send PDF Attachment back in PHP online form
I’ve got a normal mail script which sends a test.pdf back to the email address people insert into the online php form.
$mail->AddAttachment('../../pdfs/test.pdf', 'test.pdf'');
What must I update if I want to send a specific pdf to the user when he/she click on a checkbox?
input type="checkbox" id="test1" name="test1" value="test1" input type="checkbox" id="test2" name="test2" value="test2"