Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/01/2008, 10:25
jenavmo
 
Fecha de Ingreso: noviembre-2007
Mensajes: 14
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: Problema al volver atrás

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&ntilde;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.