Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

advanced search


pbianchi

Recommended Posts

Posted

With a name like that, it should understand PHP! Did you do something specific?

 

I do use UltraEdit, PHPEdit and Dreamweaver depending on the task. All three are ok, and better than notepad :D

Christian Lescuyer

Posted

hi

are you speaking about advanced_search.php? because it is like this:

code

$options_box = '<table border="0" width="100%" cellspacing="0" cellpadding="2">' . "n" .

' <tr>' . "n" .

' <td class="fieldKey">' . ENTRY_CATEGORIES . '</td>' . "n" .

' <td class="fieldValue">' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . '<br></td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

' <td class="fieldKey"> </td>' . "n" .

' <td class="smallText">' . tep_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES . '</td>' . "n" .

' </tr>' . "n" .

' <tr>' . "n" .

 

code

 

:(

 

what have i to look at?

thanks

Posted

ok i have this in html_output.php

 

// Output a form pull down menu

function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {

$field = '<select name="' . $name . '"';

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

for ($i=0; $i<sizeof($values); $i++) {

$field .= '<option value="' . $values[$i]['id'] . '"';

if ( ($GLOBALS[$name] == $values[$i]['id']) || ($default == $values[$i]['id']) ) {

$field .= ' SELECTED';

}

$field .= '>' . htmlspecialchars($values[$i]['text']) . '</option>';

}

$field .= '</select>';

 

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

 

return $field;

}

 

////

 

 

what have i to check?

Posted

This is a known problem - at least it was the last time I checked. If you search the forums you should find some comments from the core devs about it, there was an explanation of the problem and why it wasn't easy to fix.

 

It might of been fixed by now - I haven't checked this in the latest snapshot.

 

Jon.

Posted

sorry!

 

in the last release it's fixed!!!! i had to check it before; very very sorry!!!! :?

thanks to all

 

 

peter

Posted

I have this same prob. Using 2.2 and I've never altered the search

Posted

i mean the last CVS ( 02/09/2003) ...... :D

i change the "html_output.php" file with the new one and now all is ok...

 

 

peter

Archived

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

×
×
  • Create New...