Forums

This topic is locked

dynamic dependant dropdown menu to search php page

Posted 10 Feb 2005 11:56:45
1
has voted
10 Feb 2005 11:56:45 Geofrey Biggins posted:
Hi, Iam after a dynamic dependant dropdown menu that will pass a url string to a php search page. I haven't been able to find script that will allow me to pass the information from any stage of the menus as i want to be able to use it to search region county and beach. a user may just want a list of beaches in a specific county so they would select region from the first and county from the next and press go. I want it to therefore just pass 'county= selected' not 'region=selected&county=selected' as this would bring up records matching the region or the county and would confuse the user. also if it is possible it would be good if it could actually pass a specific name 'county=devon' as all the ones i have found pass numbers. hope this makes sense as i have virtually no experience with javascript.
sorry if this has been asked a thousand times before but i couldn't find it though searching the web. If anyone can point me in the right direction i would be very greatful.

Replies

Replied 10 Feb 2005 22:00:38
10 Feb 2005 22:00:38 Chris Charlton replied:
DW has a "Jump Menu" which is basically a dropdown with JavaScript to submit when the user chooses an option. I'd suggest putting a "Go" or "Search" button next to it for usability. You can make it be dynamic too easily in DW.

Hope that helps.

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 11 Feb 2005 11:19:04
11 Feb 2005 11:19:04 Geofrey Biggins replied:
hi, I currently use 3 of these jump menus for region, county and beach. only trouble is that users can choose one from each and they don't have to correspond to each other. eg region=scotland county=suffolk beach=newquay which would bring 3 records all totally different parts of the country. i would like the menus to refresh depending on the options selected if possible. Thanks for the reply.
Replied 15 Feb 2005 02:13:23
15 Feb 2005 02:13:23 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>I currently use 3 of these jump menus for region, county and beach. only trouble is that users can choose one from each and they don't have to correspond to each other. eg region=scotland county=suffolk beach=newquay which would bring 3 records all totally different parts of the country. i would like the menus to refresh depending on the options selected if possible.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Ah, so you are trying to do a dependant dropdown? Please confirm and I can point you to some knowledge on those. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 15 Feb 2005 14:08:22
15 Feb 2005 14:08:22 Geofrey Biggins replied:
Sorry its taken so long for the reply, as ive been away. Yes it is a dependant dropdown that i would like. Ive tried a few different ones from off the web but i haven't found one that i can use. I need one that the menu boxes can be named to correspond with my mysql fields and also only send one piece of info depending where the user wishes to stop. eg if he wants to search a county for beaches in a specific region he would select the region and then the county (linked to region) . The script i have found can send region=... &county=.... but i want it to send county=... or region= or beach= not all together as region= overides everything and returns results for everything in that region even if a county is selected. I hope iam making some kind of sence. your help is much appreciated.

Reply to this topic