Jump to content

Jump Menu Question


cupaball

Recommended Posts

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

Javascript  ;D

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.