Greetings,

How do I specify a link to a PDF file in a local subfolder such as pdf/order_form_print.pdf ?

The lines below are my quesswork so far. The HREF line causes a parse error in a PHP syntax checker.

<?php
define('NAVBAR_TITLE', 'Printable Order Form');
define('HEADING_TITLE', 'Printable Order Form');
 
define('TEXT_INFORMATION', 'If you prefer to order by surface mail, click the link below to display a printable order form.');
 
<a href="<?php echo tep_href_link('pdf/order_form_print.pdf'); ?>" target=_blank>Printable Order Form</a>
 
?>

Suggestions?

Thought tep_href_link was a standard PHP function, but now I know it's a function unique to the osCommerce shopping cart. Am seeeking further info on the osComm forums.

Thanks anyway.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.