473,379 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

dynamic drop down menu

How can i make a drop down menu that are dynamiclly generated base on
the value selected in another drop down menu?

thanks nad regards

Jorn
Jul 17 '05 #1
7 3426
Hi,

On 19 Apr 2004 21:24:20 -0700, jo****@yahoo.com (jo****@yahoo.com)
wrote:
How can i make a drop down menu that are dynamiclly generated base on
the value selected in another drop down menu?
Do you want it woth or without a page reload?

With:

Lookup how to do a dynamic dropdown (from a database I presume) and
add the posted value from the other dropdown to the database query.

Without:

PHp is server-side, try JavaScript

HTH,

Jochen
thanks nad regards

Jorn


--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2
how to use javascript to generated drop down menu from data in mysql database?

thanks and regard

Jorn
Jul 17 '05 #3
Can you give more detail about your situation?
How can i make a drop down menu that are dynamiclly generated base on
the value selected in another drop down menu?

thanks nad regards

Jorn

Jul 17 '05 #4
Hi,

On 20 Apr 2004 03:35:28 -0700, jo****@yahoo.com (jo****@yahoo.com)
wrote:
how to use javascript to generated drop down menu from data in mysql database?

Generate the dropdowns with PHP, but also generate the appropriate
Javascript.

Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #5
"Jochen Daum" <jo*********@cabletalk.co.nz> wrote in message
news:fq********************************@4ax.com...
Hi,

On 20 Apr 2004 03:35:28 -0700, jo****@yahoo.com (jo****@yahoo.com)
wrote:
how to use javascript to generated drop down menu from data in mysql database?

Generate the dropdowns with PHP, but also generate the appropriate
Javascript.

Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/


Or generate all possible drop-downs through PHP, then show and hide them
using Javascript.
Jul 17 '05 #6
> Can you give more detail about your situation?

i am creating a ecommerce website that sell holiday package, when a
customer select a package it can chose the hotel it want if there is
more than one available then they can select from the types of room
the hotel has.
Jul 17 '05 #7
try google and search for "jsrs" (javascript remote scripting)

<jo****@yahoo.com> schrieb im Newsbeitrag
news:e9*************************@posting.google.co m...
Can you give more detail about your situation?


i am creating a ecommerce website that sell holiday package, when a
customer select a package it can chose the hotel it want if there is
more than one available then they can select from the types of room
the hotel has.

Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Greg Scharlemann | last post by:
I am attempting to populate a drop down menu based on the selection of a different drop down menu. However, it is not working correctly, I cannot figure out for the life of me what exactly happens...
1
by: tribal boy | last post by:
Guys, I am using a dynamic menu which uses xml,xsl a css file and javascript. This works fine when there are no server controls around or underneath it. The problem is whenever the menu...
3
by: scaredemz | last post by:
hi, so i'm creating a dynamic drop-down menu. the menu and the text show up fine in IE but only the drop-down shows in Firefox without the menu text. Below is the fxn code. help pls. function...
19
by: mart2006 | last post by:
I've created a dynamic drop down menu that populates itself with data from a MySQL table. What I would like to do is create a non dynamic drop down menu that alters what is shown in the dynamic menu....
6
by: mcgrew.michael | last post by:
I hope this is the right group. I am very new to ASP so this is probably a stupid question. I have some vbscript that query's AD and populates a recordset. I know the recorset contains the...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
1
by: azeemqaiser | last post by:
Hi All, I have a form with two drop down controls. I want to change the values of Drop Down Menu 2 if i select some value in Drop Down Menu 1. Like If i select country then all the states of...
2
by: vinceboy | last post by:
Hi anybody. I am newbie here and would like to know that how can I validate both drop down menu and radio button from a dynamic display form.Something went wrong with my script.The radio button is...
10
by: mart2006 | last post by:
Hi, I'm fairly new to PHP and I've created a dynamic drop down menu that populates itself with data from a MySQL table. What I would like to do is create a non dynamic drop down menu that alters...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.