Can someone help me out with this. I am trying to place a link on a button. This is a shopping cart I am putting together. I have the "photo image" link working, but I cannot get the "buy" button to link to the description page.
"Buy Button"(not working)
<a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $list[pID]; ?><img src="imgs/buy.gif" width="25" height="15" border="0"> </a>
"Image link" (working)
<a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $list[pID]; ?>"><img src="<?php print $db->productIMGurl; ?>/<?php $list[pPhoto] ? print $list[pPhoto] : print "na.gif"; ?>" width=<?php print $array[width]; ?> height=<?php print $array[height]; ?> border=0></a>
thanks,
Phil
help with button link
Moderator: General Moderators
thank you
Thanks that worked. I thought because I had closed it at the end it would work.
<a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $list[pID]; ?>"><img src="imgs/buy.gif" width="25" height="15" border="0"></a>
<a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $list[pID]; ?>"><img src="imgs/buy.gif" width="25" height="15" border="0"></a>