greyicon Posted December 14, 2004 Posted December 14, 2004 Hi all, I have a small problem. My search seems to not work. When I search using the quick search bar or advanced search page it says nothing is found and the text in the search box contains HTML enitites, for example if I search for "red hat" the text in the search box changes to "red%20hat". I have gone through the code in the advanced_search.php and advanced_search_results.php files and they are unchanged. It must be something somehwere else. Does anyone know what is causing the error? To see the problem in action go to http://www.interspares.co.uk/ Cheers
greyicon Posted December 14, 2004 Author Posted December 14, 2004 Hi all, It really annoys me when I come here and search for something and find the probem I'm looking for, but find that a solution at the time is not found. I think it would be really useful if people would add a solution to a problem they have posted if the post is not answered by the community and that person finds the solution eleswhere after a while. This forum has some great knowledge between the users, but the site would be more useful if it had more solutions posted, so the search facility is more utilised. Sorry to go on. :blush: Anyway the solution to the problem I had was to add urldecode() to the part of code in the advanced_search_results.php that gets the keywords. The code changes are detailed below: Before: if (isset($HTTP_GET_VARS['keywords'])) { $keywords = $HTTP_GET_VARS['keywords']; } After: if (isset($HTTP_GET_VARS['keywords'])) { $keywords = urldecode($HTTP_GET_VARS['keywords']); } Cheers
Recommended Posts
Archived
This topic is now archived and is closed to further replies.