Re: Link Selected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Javascript).
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.
(opener.document.form.fourni.options[opener.document.form.fourni.selectedIndex].value)

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


Regards

Koen

On 17/10/05, Micah Stevens <micah@xxxxxxxxxxxxxxxxxx> 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, Nur_Adman@xxxxxxx 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 (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux