Re: Link Selected
| From: | Koen Wagemans | Date: | Mon, 17 Oct 2005 09:52:09 +0000 |
| Subject: | Re: Link Selected | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40515@lists.php.net to get a copy of this message | ||
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@raincross-tech.com> 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@fmi.com 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
>
>