Hello
I jumping in as well, but this post is the nearest to what I would like do.
I have to drop down's on my firts page, both need to be selected.
Then I have a next page/submit button that goes to page 2 where I have my Query List.
At the moment if I choose a option from one of the select list, it directs me to the second page and give me my feedback.
What scripting do I need to put on the button so that is sends the 2 values to my second page?
And how do I change the query script to do this for me.
Here is my current select list script:
function ff_serviceselect_action(element, action)
{
switch (action) {
case 'select':
case 'change':
ff_redirectParent(
'index.php?option=com_facileforms'+
'&ff_name=PropertySearchUK'+
'&ff_page=2'+
'&ff_border=0'+
'&ff_param_sort1='+escape(element.value)
)
break;
default:;
} // switch
} // ff_serviceselect_action
And my query script
global $database;
$service_txt=mosGetParam($_REQUEST, 'ff_param_sort1', '');
$location_txt=mosGetParam($_REQUEST, 'ff_param_sort2', '');
$database->setQuery(
"select * from #__property_services ".
"WHERE `service` LIKE '%$service_txt%' or `location` LIKE '%$location_txt%'"
);
$rows = $database->loadObjectList();
I have been batteling with this for quite a while. Any help would be appriciated.
Thanks
Jan