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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.