I have this button called save
button. On clicking on it, I want it to call a PHP file on the server which will then let user download a text file with some data.
This is my button code
<img id="save" class="normal_button" src="buttons/save.png">
This is my jQuery file
jQuery(document).ready(function(){
jQuery("#save").click(function(){
jQuery.get("download.php");
});
Here is my php file named download.php
<?php
echo "connected";
?>