Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How to create header dynamic link

New Here ,
Nov 11, 2009 Nov 11, 2009

I have created a links for categories using search. Basically when you click the link keywords are passed on to search and all the product matches the keywords show up in resultpage. I am looking for a way to print the name of the link as header in the result page. Any help is greatly appreciated

Here is the code for search and link

<?php
$categories = array(
array('search'=>'digital camera 10 mp' , 'link'=>'10 MP  digital cameras'),
array('search'=>'digital camera SLR ', 'link'=>'Digital SLR cameras'),
array('search'=>'digital camcorders ', 'link'=>'Digital camcorders'),
array('search'=>'pocket camcorder OR "VIDEO CAMERA" ', 'link'=>'Pocket camcorders')
);
?>


<?php foreach ($categories as $category) { ?>

<a href="resultpage.php?psps_search=<?= urlencode($category['search']) ?>" class="catnavigation">
<?= $category['link'] ?>
</a> <?php } ?>


TOPICS
Server side applications
377
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 11, 2009 Nov 11, 2009

This is how I do it using the Cartweaver results.php page:

<h1><?php echo($pageTitle);?></h1>

The product category is the page title...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 11, 2009 Nov 11, 2009
LATEST

I don't use carweaver result.php. what is it ?

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines