I have a php script that contains a jQuery script too:
<?php
echo "<img class='PrevIMG' onclick='ShowURL(event)' src= 'http://imageURL'/>
<script>
function ShowURL(event){
var im = event.target.src;
alert(im);
}
</script>"
?>
I echo an image and a jQuery script with php and memorate image's URL into im
jQuery variable when I click it.
I want to memorate that im
variable into a php variable so that I can POST/GET it.