Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_href_link problem


RyanSmith

Recommended Posts

Posted

This code doesn't print anything. Can someone tell me what I did wrong?

 

<?php tep_href_link('index.php', 'cPath=31_32'); ?>">

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted

Try this:

<a href="<?php echo tep_href_link('index.php?cPath=31_32', '','NONSSL');?>">Link Text</a>

Posted
Try this:

<a href="<?php echo tep_href_link('index.php?cPath=31_32', '','NONSSL');?>">Link Text</a>

 

Nope it's still not printing anything.

I have no idea whats going on

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted
Now I am really puzzled. I virtually cut and pasted that from my site where is working fine.

 

Ya, I don't get it either. You would think it would throw an error or something. But it doesn't print anything.

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted
Nope it's still not printing anything.

I have no idea whats going on

 

You must try David's suggestion outside of <?PHP ?> tags and within regular HTML tags.

 

HTH,

Robert

Posted
You must try David's suggestion outside of <?PHP ?> tags and within regular HTML tags.

 

HTH,

Robert

 

 

Outside of the PHP tags it just prints out the text

 

tep_href_link('index.php?cPath=31_32', '','NONSSL');

 

From within the PHP tags, it prints out nothing.

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted

OK. I feel like a jack ass. I have been struggling with this all day, and my problem was that I didn't add the echo before the function call.

 

Needs to look like this:

 

<?php echo tep_href_link('index.php?cPath=31_32', '','NONSSL'); ?>

 

Thanks for your help,

I appericate it.

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Archived

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

×
×
  • Create New...