I need to send a value through a link to another page:
<li><a href="" onclick="getPasta()" id="icons"><?php echo $this->translate('Download');?></a></li>
I tried to use this code for upload:
<script type="text/javascript">
function getPasta(){
var id = $(this).attr('id');
$.post(
"../download/index.phtml",
{ pasta: "id" }
);
}
</script>
But it is not working. I also want to ask how I would capture this value on my landing page because I need the pasta:id
value to be in a PHP variable.