cupaball Posted February 15, 2009 Share Posted February 15, 2009 I have a function that spits out events from a db and list them. I am wondering how I can show the results based on what is selected in the jump menu. I can't even think where to begin. How would I link a jump menu to pass a variable to a function? Or even based on which jump menu is used, determine which function is call and variable is passed. My example is at www.looking4ambiance.com/beta Any thoughts on this? Link to comment https://forums.phpfreaks.com/topic/145327-jump-menu-question/ Share on other sites More sharing options...
cupaball Posted February 16, 2009 Author Share Posted February 16, 2009 Let me ask the question this way. How can I acheive this type of sorting? http://www.carolsdaughter.com/category/mens/mens_bath_body.do Link to comment https://forums.phpfreaks.com/topic/145327-jump-menu-question/#findComment-763404 Share on other sites More sharing options...
Brian W Posted February 16, 2009 Share Posted February 16, 2009 Javascript Which makes this the wrong board to ask on... but, here is a quick tidbit pulled from that website you supplied <select name="sortBy" onchange="location.href=this[this.selectedIndex].value"> could be (I think) <select name="sortBy" onchange="window.location="page.php?sortBy="+this[this.selectedIndex].value"> debugging probably necessary because I'm not the most fluent js person The onchange event triggers that code when the client selects the box. Link to comment https://forums.phpfreaks.com/topic/145327-jump-menu-question/#findComment-763439 Share on other sites More sharing options...
cupaball Posted February 16, 2009 Author Share Posted February 16, 2009 Thanks for your help, I will go ask on the corrrect board. Link to comment https://forums.phpfreaks.com/topic/145327-jump-menu-question/#findComment-763663 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.