Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tell-a-friend code on page


Guest

Recommended Posts

Hi,

 

I am trying to use this form code to put on the product_info.php page:

 

<FORM name=tell_a_friend action=http://209.151.85.190/catalog/tell_a_friend.php method=get>

<input name="imageField" type="image" src="images/button_tell_a_friend.gif" width="80" height="19" border="0">

<input type="hidden" name="products_id" value="...">

</FORM>

 

I have tried various coding in the value but nothing is working.

 

Is it possible to have a button link on the product_info.php page that will go to the tell-a-friend code and work properly showing each individual product id of individual products?

 

Thanks!

Link to comment
Share on other sites

Hi,

 

For those interested this is what will work:

 

<FORM name=tell_a_friend

action=http://209.151.85.190/catalog/tell_a_friend.php method=get>

<input name="imageField" type="image"

src="images/button_tell_a_friend.gif" width="80" height="19" border="0">

<input type="hidden" name="products_id" value="<?php echo (int)$products_id; ?>"> </FORM>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...