Refine search, but not based on path
In reply to: http://www.phpdig.net/forum/showthre...ghlight=refine
This is a very basic hack to allow the user to refine her/his search by selecting a radio button below the search-box. First of all let me say that I'm very new to phpdig and I'm sure there are better ways to achieve what I'm trying to do here. Please let me know :) THE modded FILE: libs/function_phpdig_form.php Around line 197... I have put this (the head of the form): Code:
$result['form_head'] = " Code:
$result['form_foot'] = " anatomi soeg_emner placering=main AND soeg_oevrige ...I will paste them into my documents before I do my digging... It works like this: When the user has selected a radio button and pressed the submit-button the JavaScript on the submit-button pastes the radio button-value into the search-box along whit what the user put (if anything). This is (naturally) done before the values are passed to the search-script (action='$result_page'). Maybe this can inspire someone? Maybe someone can achieve the same in a more clever way? God I hate JavaScript :) |
All times are GMT -8. The time now is 05:14 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.