View Single Post
Old 02-11-2012, 02:30 PM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Are you still looking to load the page with AJAX? If so you will need to use JavaScript to get the values from the select and text input. If you have jQuery you can do something like this:
Code:
// JavaScript
function doSearch()
{
    var series = $('select[name="searchtype"] option:selected').text();
    var term = $('input[name="searchterm"]').val();
    var newURL = 'page2.php?series=' + series + '&term=' + term;
    ajaxPage(newURL);
}
Not tested, and you don't need to separate the variables if you don't want to. If you want this thread moved to the JavaScript forum let us know and one of the Mods will take care of it.
Inigoesdr is offline   Reply With Quote