Forum Moderators: open
In IE6 it does nothing.
<a href="javascript://" onClick="top.location='cart.php?xCmd=add&position=<?php echo $cr['productID'];?>&xFwd=customer.php?xCmd=wlshow&xProd=<?php echo $cr['productID'];?>&qty<?php echo $cr['productID'];?>='+document.getElementById('qty<?php echo $cr['productID'];?>').value" />
Any ideas? help urgently needed and thanks in advance. :)
The new link is
<a href="javascript:location.replace('cart.php?xCmd=add&position=<?php echo $cr['productID'];?>&xFwd=customer.php?xCmd=wlshow&xProd=<?php echo $cr['productID'];?>&qty<?php echo $cr['productID'];?>='+document.getElementById('qty<?php echo $cr['productID'];?>').value)" />
<a href="#" onClick="window.location.href='cart.php?xCmd=add&position=<?php echo $cr['productID'];?>&xFwd=customer.php?xCmd=wlshow&xProd=<?php echo $cr['productID'];?>&qty<?php echo $cr['productID'];?>='+document.getElementById('qty<?php echo $cr['productID'];?>').value; return false;" />
That should give you this;
cart.php?xCmd=add&position=AAA&xFwd=customer.php?xCmd=wlshow&xProd=AAA&qty=AAA
The 2 question marks are going to cause you some headaches.
Edit: nm, guess you got it.
[edited by: Trace at 3:01 pm (utc) on Aug. 15, 2007]