Código HTML:
<a href="#" target="_self" onClick="add_cart(<?php echo $id.", ".$row['id']; ?>);"><img src="intranet/images/append.gif" width="141" height="29" title="Añadir a la cesta" border="0" /></a>
Eso llama a esta función de Javascript
:
Código:
function add_cart(categoria, articulo) {
document.location.href = 'home.php?id=' + categoria + '&id_art=' + articulo + '&action=add_cart&uds=' + parseInt(document.getElementById('unidades_' + articulo).value);
}
Y eso provoca la direccion que puse anteriormente.