Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Very weird!


darkink

Recommended Posts

Posted

This is a link to one of my products. when you click on it the link trys to go to product_info.php?products_id=1030

 

There is no product 1030! how can this happen when my link says to go to 103 ?

 

<a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=103' . (int)$_GET['products_id'],NONSSL,false); ?>" />BUTTON</a>

Posted

"how can this happen when my link says to go to 103"

 

It does not say to go to product 103.

 

It says go to product 1030

 

The 0 on the end is the (non)value of (int)$_GET['products_id']

 

So remove this:

. (int)$_GET['products_id']

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...