pbianchi Posted February 10, 2003 Share Posted February 10, 2003 hi strange problem :( you can see it at http://www.marlinitalia.net/ecommerce/cata...php?language=en in the pull down menu : categories i have " " for sub-categories ...... what is the problem? can someone help me? i wish to delete it..... thanks Peter Link to comment Share on other sites More sharing options...
Christian Lescuyer Posted February 10, 2003 Share Posted February 10, 2003 Did you edit the page in an "intelligent" editor? The entity has been changed to in the file! Christian Lescuyer Link to comment Share on other sites More sharing options...
pbianchi Posted February 10, 2003 Author Share Posted February 10, 2003 i use phpCoder :( i will try with notepad thanks Link to comment Share on other sites More sharing options...
Christian Lescuyer Posted February 10, 2003 Share Posted February 10, 2003 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 Link to comment Share on other sites More sharing options...
pbianchi Posted February 10, 2003 Author Share Posted February 10, 2003 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 Link to comment Share on other sites More sharing options...
Christian Lescuyer Posted February 10, 2003 Share Posted February 10, 2003 I would say the problem is with tep_draw_pull_down_menu(). That's probably in html_output.php Christian Lescuyer Link to comment Share on other sites More sharing options...
pbianchi Posted February 10, 2003 Author Share Posted February 10, 2003 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? Link to comment Share on other sites More sharing options...
jon_l Posted February 10, 2003 Share Posted February 10, 2003 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. Link to comment Share on other sites More sharing options...
pbianchi Posted February 10, 2003 Author Share Posted February 10, 2003 sorry! in the last release it's fixed!!!! i had to check it before; very very sorry!!!! :? thanks to all peter Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2003 Share Posted February 11, 2003 I have this same prob. Using 2.2 and I've never altered the search Link to comment Share on other sites More sharing options...
pbianchi Posted February 12, 2003 Author Share Posted February 12, 2003 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.