Communicating between two pages using jquery and ajax
Hi
I am trying to pass data, namely through query strings, using jquery and ajax between two php files:
In ecovib2d_adriant.php (calling program):-jquery in function changePic
$(document).ready(function(){
$.(“Graphic_select”).change(function{
$.post(“watermark.php?Pic=“ + picname + “&Person=“ + personname);
$.send();
});
};
In watermark.php: I get picname and personname via the query string and then put a watermark on the image and then construct a query string using ajax to pass back to ecovib2d_adriant.php the resulting image file:
$url = ‘
https://www.ecovib2d.com.au/ECOVIB2D/MYART/ecovib2d_adriant.php’;
<script>
$.ajax({
url: $url,
data:{“?image=“ + $imagew},
type:”POST”
});
</script>
Can anyone please help? ($imagew is the watermarked image file)