bill110 Posted January 20, 2007 Posted January 20, 2007 this code is from a contribution for a search box. I want to be able to use the catagory names in the drop down list it creates as a link. What I want it to do is when you click the catagory name, go to the DEFAULT page with the selected catagory as the page to display. Here is the code for the drop down <?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) ?> I am putting this in the header so I can remove the categories box. I have tried using the tep_href_link function but I am unsure how to use this code in conjunction with it. Any help is appreciated. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
bill110 Posted January 20, 2007 Author Posted January 20, 2007 I now have It linking but I lose the session. Here is what I have now <?php echo '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">'. tep_draw_pull_down_menu('cPath', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES))), $cPath,'onchange="this.form.submit();"') ?> Any ideas on how to keep the session? My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
satish Posted January 20, 2007 Posted January 20, 2007 Force cookies to true is the simplest option. else in tep_href_link(FILENAME_DEFAULT) see to it that oscid is passesd as a get argument. Satish Mantri I now have It linking but I lose the session. Here is what I have now <?php echo '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">'. tep_draw_pull_down_menu('cPath', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES))), $cPath,'onchange="this.form.submit();"') ?> Any ideas on how to keep the session? Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
bill110 Posted January 21, 2007 Author Posted January 21, 2007 Thanks for the help. Sorry for the late reply. how do I pass the sid as a get argument. Thanks for the help My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
Recommended Posts
Archived
This topic is now archived and is closed to further replies.