There are some possibilities:

1) Define a link to the same page in your first combobox (<option
value"..">..</option> and execute him when he is selected (with
Be sure that you take the value off the selected item to the folowing page.
Your second combi will be reloaded and here you fill the value in the
where clause

2) The disadvantage off the first solution is that your page is
reloaded, this way you lose the values that are allready fild in. A
way to avoid that is to work with popups.
Work with a link to the popup in the first combo.
Let the query be exetuted in the popup and put the values with
Javascript in the second combo.

3) Load all the possibilties in javascript arrays and then point to them



On 17/10/05, Micah Stevens <[EMAIL PROTECTED]> wrote:
> Sounds like more of a Javascript problem than a PHP one. Maybe some Ajax to
> get the updates?
> On Sunday 16 October 2005 11:46 pm, [EMAIL PROTECTED] wrote:
> > Dear All,
> >
> > I am a new PHP programmer. I need help from all of you.
> >
> > I want to make Linked ComboBox between 2 or more ComboBoxs (connect to
> > Database).
> > For example:
> > When I clicked the main field, the sub items field will display the data
> > automatically on other ComboBox.
> >
> > Are there somebody could help me?
> >
> > Thank You & Regards,
> >
> > Anita
> --
> PHP Database Mailing List (
> To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to