Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem expressing multiple variables


Guest

Recommended Posts

Hi Folks

 

I have been puzzling over the following expression for 4 or 5 hours and have come to the conclusion the answer is laughing at me cause it in front of my face

 

I am simply trying to call up a popup window. The original expression was

 

 echo'<a href= "java script:popupWindow(\''.tep_href_link($products_specific_helpfiles_names).'\')"> <font color ="#0000FF">Click here for advice on this product</font>.</a>';

 

I want to substitute data from a table which I have passed to a variable for the

 

Click here for advice on this product

 

I have tried all sorts but I keep getting errors or blank space, for example

 

 echo'<a href="java script:popupWindow(\''.tep_href_link($products_generic_helpfiles_names).'\')"><font color="#0000FF">"  "<?php echo $products_generic_helpfiles_clickthru; ?> </font>.</a>';

 

Just comes up with

" "

 

Please can some kind soul give me guidance or the correct syntax before I lose all my marbles!

 

Thank you

 

Nossum

Link to comment
Share on other sites

 

I knew the answer was there laughing at me.... For those who might have a similar problem and are searching for an answer

 

The Problem

 

I was trying to call a popup help file to which of course you can add a text descriptor

 

<a name="label">Text to be displayed</a>

 

But I wanted to be able to insert the text descriptor from a table. Whilst there will be other solutions the one I hit upon is

 

echo'<a href= "java script:popupWindow(\''.tep_href_link($products_specific_helpfiles_names).'\')"> <font color ="#0000FF">Click here </font></a>';

echo $products_specific_helpfiles_clickthru;

 

The first line calls up the popup and has the "generic" part of the text descriptor

 

The second line comes from a table and follows immediately after the generic text descriptor so it looks all one line

 

Cheers

 

Nossum

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...