Jump to content

[SOLVED] where am i going wrong???????????


wilson210484

Recommended Posts

HELP!!! I have wrote this script based on an osCommerce page out of my site however when i click on the drop down list the redirect is wrong any ideas?

<code>

<?php

    $info_box_contents = array();

    $info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS_LIST);

 

    new infoBoxHeading($info_box_contents, false, false);

 

 

// Display a drop-down

      $manufacturers_array = array();

 

        $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);

      }

 

      while ($manufacturers = tep_db_fetch_array($manufacturers_list_query)) {

        $manufacturers_name = ((strlen($manufacturers['categories_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['categories_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['categories_name']);

        $manufacturers_array[] = array('id' => $manufacturers['categories_id'],

                                      'text' => $manufacturers_name);

      }

 

      $info_box_contents = array();

      $info_box_contents[] = array('form' => tep_draw_form('categories', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'),

 

/* below is the part i am unable to work out if i leave 'cPath=22_', this does not come out in the nav bar in explorer you get cPath%3D22_ something to do with the = sign. also after this there is another = sign that i cant seem to find to take out i hope this puts me one step closer to sorting this out any help you may be able to offer would be a great help.*/

                                 

  'text' => tep_draw_pull_down_menu('cPath=22_',$manufacturers_array, (isset($HTTP_GET_VARS['categories_id']) ? $HTTP_GET_VARS['categories_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());

 

 

    new infoBox($info_box_contents);

?>

<code end>

thanks for looking see what you think.

Link to comment
https://forums.phpfreaks.com/topic/77613-solved-where-am-i-going-wrong/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.