I am having a newsletter HTML email template found here. I want when the button is pressed, the page doesn't refresh and an info is sent to my DB; for example MYSQL.
I have found this question and it's answer. But there is a PHP file involved which I don't know what it should have. And as you will notice there is no form
in the templates in the link provided.
I know that AJAX is part of my answer, but I don't know how to use it in such situation; where I don't have a form.
So, is there an answer to my question or is it just impossible to do such a thing?
Any help is so much appreciated.