Forum Moderators: open
this routine will eliminate the spaces and replace with the ascii code for space (%20)
var space = /\s/g;
var fundval = drop.options[drop.selectedIndex].replace(space, "%20");
var URL = "listfundraisers.asp?fund=" + fundval;
window.location.href= URL;
var fundval = document.form.select.options[document.form.select.selectedIndex].value;
var URL = "listfundraisers.asp?fund=" + escape(fundval);
window.location.href= URL;
This will URI encode all the necessary characters (including spaces) in the fundval string.